return_url for v1/billing-agreements/agreement-tokens API doesn't work anymore (in sandbox)

roywu01
Contributor
Contributor

{ "description":"test description", "payer":{ "payment_method":"PAYPAL" }, "plan":{ "type":"MERCHANT_INITIATED_BILLING", "merchant_preferences":{ "return_url":"https://ooo.xxx.com/v3/subscription/webhook/paypal?service_plan_id=service_plan_id1&action_type=acti...", "notify_url":"https://paypal-webhook-dev.ooo.co", "cancel_url":"https://dev.furbo.com", "accepted_pymt_type":"INSTANT", "skip_shipping_address":true, "immutable_shipping_address":true } }, "merchant_custom_data":"{\"country\": \"DE\"}" }

 

Here is my request payload, I expect it should redirect to https://ooo.xxx.com/v3/subscription/webhook/paypal amd it worked before, but now it is broken. It redirects to https://ooo.xxx.com/ instead, and this only happen in the sandbox environment.

The production environment works as usual.

 

Here is the response I got.

{ "token_id":"BA-2CG64922XT939380R", "links":[ { "href":"https://www.sandbox.paypal.com/agreements/approve?ba_token=BA-2CG64922XT939380R", "rel":"approval_url", "method":"POST" }, { "href":"https://api-m.sandbox.paypal.com/v1/billing-agreements/BA-2CG64922XT939380R/agreements", "rel":"self", "method":"POST" } ] }

 

Is this an issue or it just an update of the API?

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

roywu01
Contributor
Contributor

It seems the issue was solved.

 

View solution in original post

Login to Me Too
2 REPLIES 2

phicha
New Community Member

We have observed exactly the same problem for both PRODUCTION and sandbox. SetExpressCheckout calls from our subscription provider to PayPal ended up in the wrong redirect-url. Our provider confirmed that the problem occurs with other customers too. 

 

Due to the wrong url no bookings are possible at the moment.

Login to Me Too
Solved

roywu01
Contributor
Contributor

It seems the issue was solved.

 

Login to Me Too

Haven't Found your Answer?

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