Payment object contains all the information needed to process a payment transaction.
Properties
| Field | Type | Required | Description |
|---|---|---|---|
amount | number | ✅ | Payment amount in the smallest currency unit (e.g., cents for USD). Send a whole number: 0.00 and other values with decimals are rejected. Use 0 with captureNow: false to validate a card without charging it. |
currency | string | ✅ | ISO 4217 currency code Values: USD (currently the only supported currency) |
paymentMethod | PaymentMethod | ✅ | The chosen payment method details (e.g., card) |
merchantReference | string | ✅ | Your reference for this payment, returned in responses and webhooks. Uniqueness is not enforced and it is not an idempotency key: sending the same value twice creates two payments. Payments can’t be looked up by this value. |
source | Source | ✅ | Details related to where a payment originated |
goodsType | string | ✅ | Type of goods being purchased Values: PHYSICAL (tangible items), DIGITAL (non-physical items), MIXED (combination of both) |
productItems | array of ProductItem | ❌ | List of product or service items included in this payment |
captureNow | boolean | ❌ | Determines how the payment is processed Behavior: false (default) - Authorization only, true - Sale (authorize and capture in one step)null is rejected. Must be false when amount is 0. |
descriptor | string | ❌ | Not currently passed to the customer’s statement. On Paymend MIDs, the statement shows the domain of the store in source.storeId. |
consumer | Consumer | ❌ | Consumer details such as name, email, phone |
billing | Billing | ❌ | Billing address information |
shipping | Shipping | ⚠️ | Shipping address and recipient details. Required when goodsType is not "DIGITAL" |
previousFailures | array of PreviousFailure | ❌ | Array of previous failed payment attempts with other providers. Providing this context can help improve approval rates when retrying payments |