cancel
Showing results for 
Search instead for 
Did you mean: 

subscription checkout not working

Options
Ashishyadav1
Contributor
Posted on

Please help me to get out of this issue. 

 

Payload of subscription creation {
"plan_id": "P-0Y635420XK2967209LTJ7HEQ",
"quantity": "1",
"shipping_amount": {
"currency_code": "USD",
"value": "20"
},
"subscriber": {
"name": {
"given_name": "ashish",
"surname": "<removed>"
},
"email_address": "emailAddress",
"shipping_address": {
"name": {
"full_name": "ashish <removed>"
},
"address": {
"address_line_1": <removed>,
"address_line_2": <removed>,
"admin_area_2": "San Jose",
"admin_area_1": "CA",
"postal_code": "95131",
"country_code": "US"
}
}
},
"auto_renewal": true,
"application_context": {
"brand_name": "PetroleumTaxTools",
"locale": "en-US",
"shipping_preference": "SET_PROVIDED_ADDRESS",
"user_action": "SUBSCRIBE_NOW",
"payment_method": {
"payer_selected": "PAYPAL",
"payee_preferred": "IMMEDIATE_PAYMENT_REQUIRED"
},
"return_url": "https://example.com/returnUrl",
"cancel_url": "https://example.com/cancelUrl"
}
}

 

In response got the links:

links=[{
"href": "https://api.sandbox.paypal.com/v1/billing/subscriptions/I-GY3DTBDFHX9K",
"rel": "edit",
"method": "PATCH"
}, {
"href": "https://api.sandbox.paypal.com/v1/billing/subscriptions/I-GY3DTBDFHX9K",
"rel": "self",
"method": "GET"
}, {
"href": "https://www.sandbox.paypal.com/webapps/billing/subscriptions?ba_token\u003dBA-8R95065153434381M",
"rel": "approve",
"method": "GET"
}]

after going on approve link got the error page, attaching the error page snapshot.

paypalcheckout.png

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.