I am implementing PayPal in React Native, following the documentation for PayPal Payments v2 API
Here is the step by step of my checkout:
- Use https://api.sandbox.paypal.com/v1/oauth2/token to get token.
- Use https://api.sandbox.paypal.com/v2/checkout/orders to create an order
- Use approve link for clients to accept payment
- I set the
return_url
to behttps://www.google.com/
. After clients accept the payment, I receive thereturn_url
https://www.google.com/?token=<order_id>&PayerID=<payer_id>
At this point I'm stuck: how can I use the information order_id
and payer_id
?