Can I send a variable to paypal using paypal subscribe for development

anuj_123
New Community Member
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 (dataactions) {
            return actions.subscription.create({
                'plan_id': 'P-54S50542LP608591HL7DE',
'option_selection1': "anuj-custom",
                'os4': "anuj-custom",
                 'custom_id':"anuj-custom",
                          });
        },
        onApprove: function (dataactions) {
            alert(JSON.stringify(data));
            console.log("data=" +JSON.stringify(data))
        }
    }).render('#paypal-button-container');
</script>
Login to Me Too
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.