Can I send a variable to paypal using paypal subscribe for development
anuj_123
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Dec-02-2020
04:12 AM
I am trying this way but not getting custom variable in IPN response of boy
<script
data-sdk-integration-source="button-factory"></script>
<script>
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'subscribe'
},
createSubscription: function (data, actions) {
return actions.subscription.create({
'plan_id': 'P-54S50542LP608591HL7DE',
'option_selection1': "anuj-custom",
'os4': "anuj-custom",
'custom_id':"anuj-custom",
});
},
onApprove: function (data, actions) {
alert(JSON.stringify(data));
console.log("data=" +JSON.stringify(data))
}
}).render('#paypal-button-container');
</script>
Labels:
- Labels:
-
Payflow Pro
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
- Need Help Upgrading to PayPal complete payments in PayPal Upgrade Community
- showing custom_id information in a subscription in SDKs
- Subscription payment via HTML form does not work anymore in PayPal Payments Standard
- How do I know my Access Tokens are secure? in SDKs
- Sandbox Subscription Error: sorry, we couldn't setup your subscription using the card you selected in Sandbox Environment