Skip to main content
Create a payment by submitting a POST request to /v1/payments.

Mandatory fields

The basic data required to create a payment relates to:
  • The value of the payment: amount and currency
  • The payment method to be used: passed in the PaymentMethod object
  • Payment identifiers:
    • A merchant-defined unique identifier for the payment: merchantReference
    • A Paymend-defined unique identifier for the store where the payment originated (eg. website): source.storeId
  • The type of goods being purchased: goodsType

Key fields

In addition to the details noted above which must be provided, we highly recommend passing the following details in all requests:
  • Who initiated the payment: source.initiatedBy is a valuable card-on-file parameter and is mandatory to enable asynchronous processing
  • Consumer and billing data: passed in the Consumer and Billing objects, respectively. These details increase the chances of approval and help with payment identification.
  • Determine the authorization type: use the captureNow field to actively determine whether funds are authorized and captured in a single or separate requests.
If you’re using Paymend for payment recovery, take a look at the PreviousFailure object too. See our guide on payment recovery via Paymend here.

Request

Example payment creation request (authorize and capture in one step):

Response

Example success response (200 OK):