'The id provided does not exist razorpay error in react native

While creating order_id by using razorpay API of orders the order id gets generated. But when I pass the value of order id in checkout, it throws me the error about "id provided does not exist".

I am implementing this by using React native and in the axios response I am correctly getting the order_id which should be stored in the reducer, but while doing the checkout it fails and throws this error.

I attach the error below.

{"code": 5, 
 "description": 
   "{\"error\":{\"code\":\"BAD_REQUEST_ERROR\",
    \"description\":\"The id provided does not exist\",
    \"source\":\"business\",
    \"step\":\"payment_initiation\",
    \"reason\":\"input_validation_failed\",
    \"metadata\":{}},
    \"http_status_code\":400}
"}

so how can I solve this ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source