"error_create_payment" error message coming when I try to place an order on hosted checkout page

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 :slight_smile:

2 Likes