Rápido Pagos
Checkouts

Submit payment details for a checkout

POST
/checkout/{id}

Submits card, Google Pay or Apple Pay payment details to process a previously created checkout. This initiates the payment flow which may include 3D Secure authentication.

Path Parameters

id*string

The unique identifier of the checkout

Formatuuid
Example"550e8400-e29b-41d4-a716-446655440000"

Request Body

Card, Google Pay or Apple Pay payment details

application/json
  1. body
paymentMethod?"card"

Pay with card details entered by the customer. Defaults to card when omitted.

Default"card"
Value in"card"
cardNumber*string

Credit/debit card number without spaces or dashes

Example"4111111111111111"
expiration*string

Card expiration date in YYYYMM format

Length6 <= length <= 6
Example"202812"
CVC*string

Card verification code (3 or 4 digits)

Example"123"
cardHolderName?string

Card holder name as the customer entered it, forwarded to Azul for dispute evidence

Length1 <= length
Example"Juan Perez"
cardHolderEmail?string

Card holder email as the customer entered it, forwarded to Azul for dispute evidence

Formatemail
Example"juan.perez@example.com"
browser?

Display and runtime facts the checkout page reads from the cardholder browser, forwarded to Azul as part of BrowserInfo for 3D Secure risk analysis

Response Body

Payment details received. The outcome comes from GET /checkout/{id}, also when the outcome of the sale is not yet known.

application/json
  1. response
success*true

Indicates the payment details were received. The payment outcome comes from GET /checkout/{id}.

Value intrue
Submit payment details for a checkout
curl -X POST 'https://api.rapidopagos.com/checkout/550e8400-e29b-41d4-a716-446655440000' \  -H 'Content-Type: application/json' \  -d '{  "paymentMethod": "card",  "cardNumber": "4111111111111111",  "expiration": "202812",  "CVC": "123",  "cardHolderName": "Juan Perez",  "cardHolderEmail": "juan.perez@example.com"}'
Example Response
{  "success": true}