Return url not working on subscription create
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am testing on the Sandbox to create a subscription using the new Subscription API
I get the response with the HATEOS Link which I then use to redirect to the approve link. I am presented with the payment and agreement page on PayPal but after successfully completing the steps on PayPal it does NOT redirect to merchant site. Instead there is an image of a large check mark and saying that you have successfully completed.
Subscription Request sent to Subscription API:
{
"plan_id": "P-37P31725GH704245LL2V467Q",
"subscriber": {
"name": {
"given_name": "Givenname",
"surname": "Surname"
},
"email_address": "xxREMOVEDxx"
},
"application_context": {
"user_action": "SUBSCRIBE_NOW",
"payment_method": {
"payer_selected": "PAYPAL",
"payee_preferred": "IMMEDIATED_PAYMENT_REQUIRED"
},
"return_url ": "https://localhost:44395/PayPal/SubscribeApproved",
"cancel_url ": "https://localhost:44395/PayPal/cancel"
}
}
HATEOS Response:
{
"status": "APPROVAL_PENDING",
"status_update_time": "2020-05-02T19:26:56Z",
"id": "I-SYF055DEEXGC",
"plan_id": "P-37P31725GH704245LL2V467Q",
"start_time": "2020-05-02T19:26:56Z",
"quantity": "1",
"subscriber": {
"name": {
"given_name": "Givenname",
"surname": "Surname"
},
"email_address": "xxREMOVEDxx"
},
"create_time": "2020-05-02T19:26:56Z",
"links": [
{
"href": "https://www.sandbox.paypal.com/webapps/billing/subscriptions?ba_token=BA-76D512072C206284F",
"rel": "approve",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/billing/subscriptions/I-SYF055DEEXGC",
"rel": "edit",
"method": "PATCH"
},
{
"href": "https://api.sandbox.paypal.com/v1/billing/subscriptions/I-SYF055DEEXGC",
"rel": "self",
"method": "GET"
}
]
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Me also facing same problem, I have tried to configure return URL from "App Settings" in https://developer.paypal.com/ as well but it will not redirect to configured page.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- How to enable on-demand / recurring payments to existing PayPal checkout? in SDKs
- How do you create subscriptions with PayPal Advanced Checkout? in SDKs
- subscription_id has disappeared in REST APIs
- Unable to issue a refund from our business sandbox account in Sandbox Environment
- Paypal subscription Api in REST APIs