I am researching about the PayPal in React Native.
I am using the v2 apis because PayPal v1 is deprecated.
When I move to the document of PayPal payment v2, I see the document is a lot different from the v1.
Below is steps by steps my checkout:
1/ Use https://api.sandbox.paypal.com/v1/oauth2/token to get token.
2/ Use https://api.sandbox.paypal.com/v2/checkout/orders to create an order
3/ Use approve link for clients to accept payment
4/ I set the return_url
to be https://www.google.com/
. After clients accept the payment, I receive the return_url
https://www.google.com/?token=<order_id>&PayerID=<payer_id>
I get stuck in this step, how can I use the information order_id
and payer_id
?
If you know how to move on, please let me know too.
Thank you in advanced!