I'm trying to pass a serial number into a subscription that shows on the buyer side when the purchase a subscription. I'm trying to pass this information in the custom_id variable. Here's the code: <form> <label for="serial_number">Serial Number(s):</label> <input type="text" id="serial_number"> </form> <div id="paypal-button-container-P-5D310620RF0223030MPKW6GI"></div> <script src="https://www.paypal.com/sdk/js?client-id=MYMEMBERID&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script> <script> paypal.Buttons({ style: { shape: 'pill', color: 'gold', layout: 'vertical', label: 'subscribe' }, createSubscription: function(data, actions) { return actions.subscription.create({ /* Creates the subscription */ plan_id:PresetSubscriptionID, custom_id: serial_number }); }, onApprove: function(data, actions) { alert(data.subscriptionID); // You can add optional success message for the subscriber here } }).render('#paypal-button-container-PRESET Subscription ID'); // Renders the PayPal button </script></A></p> It doesn't work. MyMemberID, and SubscriptionID contain the actual values from paypal. Can someone please tell me why and how to fix
... View more