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 ‎Aug-01-2019
Country: United States
Type: Personal
Volund99
Volund99
New Community Member
1
Post
0
Kudos
0
Solutions
Your PayPal Anniversary
Active
View all
Latest Contributions by Volund99
  • Topics Volund99 has Participated In
  • Latest Contributions by Volund99

Smart Payment Integration doesn't submit subcriber...

by Volund99 in REST APIs
‎Aug-01-2019 07:18 PM
‎Aug-01-2019 07:18 PM
I've run into a problem trying to use the Smart Payment Button integration. When I try to include "subscriber:" info (e.g. email or surname) with the other data submitted with actions.subscription.create(), it seems to get filtered out. The examples in the docs all seem to call subscription.create() with only plan_id and no other data, but it clearly says you can also pass other data as needed. It just doesn't say what data. I had assumed it would be exactly the same data as documented under the /v1/billing/subscriptions API call, but that doesn't seem to be true.   To clarify, I can create a JSON object with the required fields such as product_id, plus an optional subscriber field with a name or email. If I then use this JSON object directly in an API call to /v1/billing/subscriptions, everything works as expected (by which I mean if I then check the details of the resulting subscription id, I will see the subscriber info as part of the record). But if instead of calling the API directly, I use exactly the same JSON object through the javascript interface by calling actions.subscription.create(), the subscription is created just fine but it does NOT contain the subscriber data I sent.   So it seems the javascript interface for Smart Payment Buttons is only allowing some subset of fields, but I don't know which ones I can use. I really need to be able to send some extra identifying info along with the request, whether it's in the subscriber object or somewhere else. At this point it looks like it will be impossible for me to do unless I revert to using the API directly which I would rather not have to do.   If anyone knows a way I can get this to work with the Smart Button interface, please let me know! ... View more
Labels:
  • Labels:
  • Payments REST APIs
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