# Placing an Order, Rapyd Checkout page \[Sandbox\]

**URL:** <https://community.rapyd.net/t/placing-an-order-rapyd-checkout-page-sandbox/601>\
**Category:** 🙋🏽‍♀️🙋🏽‍♂️ Ask Questions\
**Created:** [July 3, 2021, 2:40am UTC](https://community.rapyd.net/t/placing-an-order-rapyd-checkout-page-sandbox/601 "2021-07-03T02:40:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mosst](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/mosst/32/827_2.png) [@Mosst](https://community.rapyd.net/u/Mosst)\
**Post date:** [July 3, 2021, 2:40am UTC](https://community.rapyd.net/t/placing-an-order-rapyd-checkout-page-sandbox/601/1 "2021-07-03T02:40:44Z")

</div>

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

 ![Screenshot 2021-07-03 043730](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/2X/b/bb8b1c3f8e55e411758088be47100eca82cc8d95.png)

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

---

<div class="post-metadata">

**Author:** ![Legato](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/legato/32/41_2.png) [@Legato](https://community.rapyd.net/u/Legato)\
**Post date:** [July 4, 2021, 8:27am UTC](https://community.rapyd.net/t/placing-an-order-rapyd-checkout-page-sandbox/601/3 "2021-07-04T08:27:29Z")

</div>

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](https://www.epochconverter.com/)), 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.

 ![1](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/2X/2/2f98aff181bb36287d0e533c092135bcfe7ef545.png)

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

---

<div class="post-metadata">

**Author:** ![CharlesDorsett](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/charlesdorsett/32/47_2.png) [@CharlesDorsett](https://community.rapyd.net/u/CharlesDorsett)\
**Post date:** [July 4, 2021, 9:15am UTC](https://community.rapyd.net/t/placing-an-order-rapyd-checkout-page-sandbox/601/4 "2021-07-04T09:15:17Z")

</div>

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

```auto
{
    "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
}

```
