itzadok
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jun-06-2023
08:36 AM
Where in the SDK documentation can I find information about sending application_context data when subscriptions are created? I want to be able to identify the person that signed up for the subscription, so I can update his/her record in my database.
Thanks
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
eLiosh
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul-09-2023
07:26 AM
I use this code with JS SDK:
let create_obj = {
'plan_id': selector.dataset.plan_id,
'custom_id': selector.dataset.user_id,
'application_context':{
'brand_name': 'MY_BRAND',
'shipping_preference': 'NO_SHIPPING',
}
};
return actions.subscription.create(create_obj);
where create_obj.custom_id is the user_id
1 REPLY 1
eLiosh
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul-09-2023
07:26 AM
I use this code with JS SDK:
let create_obj = {
'plan_id': selector.dataset.plan_id,
'custom_id': selector.dataset.user_id,
'application_context':{
'brand_name': 'MY_BRAND',
'shipping_preference': 'NO_SHIPPING',
}
};
return actions.subscription.create(create_obj);
where create_obj.custom_id is the user_id
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
- Issue with Empty store_info in Response Using /v1/reporting/transactions on Sandbox API in REST APIs
- can we assign a unique detail to every subscription creation? in NVP/SOAP APIs
- I want to implement subscription functionality. in REST APIs
- I need to integrate a recurring payment with a variable for a pay-as-you-go product in REST APIs
- Subscription notifications in PayPal Reporting