# "error\_create\_payment" error message coming when I try to place an order on hosted checkout page

**URL:** <https://community.rapyd.net/t/error-create-payment-error-message-coming-when-i-try-to-place-an-order-on-hosted-checkout-page/311>\
**Category:** ⚙️ API\
**Created:** [May 29, 2021, 2:33am UTC](https://community.rapyd.net/t/error-create-payment-error-message-coming-when-i-try-to-place-an-order-on-hosted-checkout-page/311 "2021-05-29T02:33:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tanoojoy](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tanoojoy](https://community.rapyd.net/u/tanoojoy)\
**Post date:** [May 29, 2021, 2:46am UTC](https://community.rapyd.net/t/error-create-payment-error-message-coming-when-i-try-to-place-an-order-on-hosted-checkout-page/311/2 "2021-05-29T02:46:23Z")

</div>

Nevermind, I figure out the problem:

I had copied the request body from the docs and didn’t change the “expiration” field, which was a time in the past. Changed it to `(new Date().getTime() + (60*60*1000)).toString()` and it solved the issue.

@forum\_moderators, Thanks anyway if you’re reading this 🙂

---

_[View the full topic](https://community.rapyd.net/t/error-create-payment-error-message-coming-when-i-try-to-place-an-order-on-hosted-checkout-page/311)._
