actions.subscription.create - how do i pass metadata?
kolektiv
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-03-2020
10:40 AM
Using the react paypal button, <PayPalButton >,
how do i send metadata about who this user is that is creating a subscription all the way through to my webhook so that my server side API can receive both the confirmation from paypal's webhook event AND the data about our internal user id?
are there any paramaters i can send in the createSubscription that pass through? I see that for creating orders, you can pass meta detail in the order details.
createSubscription(data, actions) {
return actions.subscription.create({
'plan_id': 'P-XXX',
})
}
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
- My webhook stopped working 2 weeks ago in REST APIs
- Locale in 3D Secure in REST APIs
- Website using Paypal SDK - telephone question in SDKs
- When I do PayPal capture Order, I keep on getting Invalid Request Connection in REST APIs
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs