Skip to main content

Create Payment via Card Information (S2S)

POST 

/v2/cards/charges

This endpoint allows you to create a card payment intent using raw card information.

  • card_info object is required and should contain the card number, expiry month/year, CVV, and cardholder name.
  • webhook_notification object is optional. If not provided, we will use your default webhook configuration that you've previously set up. If provided, we will send webhook notifications to the specified endpoint for this specific payment.
  • When the card requires 3DS authentication, we will return a pay_code object containing {3ds_url: ''}. You must direct your customer to this URL to authorise the payment. After successful authorisation, the customer will return to return_url, and you can use the capture API normally to collect the payment from the user.
  • If capture is set to true, the payment will be automatically captured after successful authorisation. If capture is set to false, the payment will remain in the authorised status until you explicitly call the capture API.

When the payment reaches the authorised status, a token object will be returned in the API response and also included in the webhook notification.
You should save this token to create future payments without requiring your customer to re-enter their card details.

Request

Responses

Payment created