Payment approval does not redirect to return_url in sandbox
karel_s
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
May-10-2023
12:58 AM
When creating an order using /v2/checkout/orderswith
{
"intent": "CAPTURE",
"purchase_units": {"..."},
"payment_source": {
"paypal": {
"experience_context": {
"payment_method_preference": "IMMEDIATE_PAYMENT_REQUIRED",
"payment_method_selected": "PAYPAL",
"brand_name": "Brand name",
"landing_page": "LOGIN",
"user_action": "PAY_NOW",
"shipping_preference": "NO_SHIPPING",
"return_url": "https://example.com/success",
"cancel_url": "https://example.com/back",
}
}
}
}
I get a response with HATEOAS link with rel: approveand I redirect there.
Upon logging in and approving the payment I am not redirected back to return_urlbut I get stuck in
an infinite loop of approval.
I also tried specifying return_urlusing Payment Experience Profiles (/v1/payment-experience/web-profiles)
but the result is the same.
How should I specify the return_urlproperly so that I am redirected back to my checkout page?
Upon logging in and approving the payment I am not redirected back to return_urlbut I get stuck in
an infinite loop of approval.
I also tried specifying return_urlusing Payment Experience Profiles (/v1/payment-experience/web-profiles)
but the result is the same.
How should I specify the return_urlproperly so that I am redirected back to my checkout page?
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Can't capture order, loop on action-required in REST APIs
- Authorize Payment without creating order. like in petrol pump or restaurent. in Payflow
- createOrder not being directed to OnApprove actions.redirect in PayPal Payments Standard
- Incorrect Subscription Plan Id, Yet the plan is active: in REST APIs
- No redirect after payment in REST APIs