Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Sep-14-2011
Country: United States
Type: Business
jetmanjim
jetmanjim
New Community Member
1
Post
0
Kudos
0
Solutions
Active
Ice Breaker
Your 10th PayPal Anniversary
Your 5th PayPal Anniversary
Your 3rd PayPal Anniversary
Your PayPal Anniversary
Pioneer
View all
Latest Contributions by jetmanjim
  • Topics jetmanjim has Participated In
  • Latest Contributions by jetmanjim

showing custom_id information in a subscription

by jetmanjim in SDKs
‎Jan-31-2023 10:25 AM
‎Jan-31-2023 10:25 AM
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
Labels:
  • Labels:
  • PayPal Here SDK
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros