Reputation: 33
I want to know what will be the order_id
to pass in my android code while working with Razor pay
payment gateway in test mode.
Upvotes: 0
Views: 2731
Reputation: 371
Lets me put it in a simple way.
U need to first make an API call to Razorpay with details like amount and currency.
Razorpay would return an order id, this orderid needs to be passed in options object before opening the checkout pafe.
please refer to this link for details on how to create an order id.
Upvotes: 1
Reputation: 539
in order id, it should your predefined set value or unique create id for each customer order request so you can find customer order detail easily
lest understand with an example
by default on a payment, time is null after successfully payment completed then created order id automatically as per your logic these order id set into your database with orders items.
so after ordering you can find your order status easily...
a simple example is Flipkart ,amazon after checkout you get and orderid
Upvotes: 0