subscription_id has disappeared
astrogation
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Dec-02-2024
07:03 PM
I’m facing an issue.
I run a website where users subscribe to a service.
After creating the subscription on PayPal, users are redirected back to my site, but the subscription_id is missing from the redirect URL. In the sandbox environment, the subscription_id is present, but not in the production environment.
How can I make the production environment behave like the sandbox?
Here are the redirect URLs:
Production:
https://my_site.net/completed.html?token=28A81719VJ123456&ba_token=BA-123456&PayerID=123456
Here’s how I create the subscription:
- Send a POST request to v1/billing/subscriptions with the pre-created plan.
- Log in to PayPal via the response link.
- Complete the payment on PayPal, then return to my site.
- Use the subscription_id from the URL and send a POST request to /v1/billing/subscriptions/{id}/activate.
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
- Payment confirmation button does not exist in PayPal Upgrade Community
- Hosted Buttons have changed. How can I now edit the item ID and stock? in PayPal Payments Standard
- Get subscription_id from payment in REST APIs
- Getting subscription transactions mixed in with other subscription transactions in Sandbox Environment