Placing an Order, Rapyd Checkout page [Sandbox]

Hi everyone, I’m generating a checkout page using API [’/checkout’] for a customer, after filling test card details and billing address, as we are in sandbox environment I’d expect Rapyd to confirm the customer’s order anyway, however order always fails with the error

How can I create a checkout page and make the customer place an order successfully in sandbox

Hi,
Yes, this should work fine. Please verify the following:

  • In the body of the request, the value of expiration should be valid (in Unix time), and it should occur in the future (not expired).
  • In the Client Portal, go to Settings > Branding and select all the payment methods that you want to enable.

Note that the payment methods should also appear in the body of the request → in the payment_method_type_categories object.

  • Try it with a card payment. Card number: 4111 1111 1111 1111, expiration Date: 12/23, CVV Code: 123, Cardholder Name: John Doe

Thanks

2 Likes

I had trouble with this, too. But this example worked just fine:

{
    "amount": 100,
    "complete_payment_url": "http://example.com/complete",
    "country": "SG",
    "currency": "SGD",
    "customer": "cus_f05d78ebda6459035f9615ecac9463b1",
    "error_payment_url": "http://example.com/error",
    "merchant_reference_id": "0630-2021",
    "language": "en",
    "metadata": {
        "merchant_defined": true
    },
    "payment_method_types_include": [
        "sg_grabpay_ewallet"
    ],
    "expiration": 1626157209
}
1 Like