Skip to main content

Documentation

Create Checkout Message Sequence - Card - 2-Step

Diagrams and steps for a 2-step card payment via a hosted page.

Some card payment methods allow authorization and capture as two separate operations. See Card Payment With Delayed Capture Message Sequences for more information.

Note

Card payments with delayed capture expire if not captured within seven days of creation.

Success

This diagram shows the sequence of events when the card network authorizes the card and the transaction proceeds to successful completion.

  1. The client sends Create Checkout Page request with capture set to false.

  2. Rapyd sends a response containing a redirect URL to the client.

  3. The client sends the URL to the customer.

  4. The customer completes the checkout page and submits it directly to Rapyd.

  5. Rapyd requests authorization from the card network.

  6. The card network approves the card.

  7. Rapyd sends Webhook - Payment Succeeded to the client. The status of the payment is set to ACT (active).

  8. The client sends a Capture Payment request to Rapyd.

  9. Rapyd asks the card network to capture the payment.

  10. The card network captures the payment and transfers the funds to Rapyd.

  11. Rapyd sends a response with details of the transaction to the client.

  12. Rapyd sends Webhook - Payment Captured to the client.

  13. Rapyd credits the wallet and sends Webhook - Payment Completed to client. The status of the payment is set to CLO (closed).

Failure

This diagram shows the sequence of events when the card network declines to authorize the transaction.

checkout-card-2-step-failure.svg
  1. The client sends Create Checkout Page request with capture set to false.

  2. Rapyd sends a response containing a redirect URL to the client.

  3. The client sends the URL to the customer.

  4. The customer completes the checkout page and submits it directly to Rapyd.

  5. Rapyd creates a payment with status set to ACT (active). Rapyd requests authorization from the card network.

  6. The card network declines the card.

  7. Rapyd sends the Webhook - Payment Failed to client. The status of the payment is set to ERR (error).