Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in
  • Welcome
    • Guidelines
    • News and Events
    • Suggestions for PayPal
    • General Discussions
  • PayPal Help Community
    • Managing Account
    • Transactions
    • Wallet
    • Security and Fraud
    • Products & Services
    • Reporting
  • MTS Community
    • PayPal Upgrade Community
    • PayPal Payments Standard
    • REST APIs
    • NVP/SOAP APIs
    • SDKs
    • Sandbox Environment
    • PayPal Reporting
    • Payflow
    • Ideas for MTS
    • Client-side Integration
    • Server-side Integration
  • The Archives
    • PayPal Help Community Archives
      • Managing Account Archives
      • Transactions Archives
      • Wallet Archives
      • Security and Fraud Archives
      • Products & Services Archives
      • Reporting Archives
    • Help Community
      • PayPal Basics Archives
      • Payments Archives
      • My Money Archives
      • My Account Archives
      • Disputes and Limitations Archives
      • Products and Services Archives
      • PayPal Credit Archives
    • Merchant Community
      • Merchant Products
      • Business Tools Archives
      • Reporting Archives
      • Managing Risk and Fraud Archives
    • Help Archives
      • About Business (Archive)
      • About Payments (Archive)
      • About Settings (Archive)
      • About eBay (Archive)
      • About Protections (Archive)
      • About Products (Archive)
    • Social and Your Voice Archives
      • Off Topic (Archive)
      • My Feedback for PayPal (Archive)
    • About PayPal Archives
      • Watercooler (Archive)
      • Tax Information (Archive)
      • Fees (Archive)
      • eBay and PayPal (Archive)
      • Coupons and promotions (Archive)
    • My Account Archives
      • My account settings (Archive)
      • Account limits and verification (Archive)
      • Account balance (Archive)
      • Bank accounts and credit cards (Archive)
    • Payments Archives
      • Sending money (Archive)
      • Receiving money (Archive)
      • Refunds (Archive)
      • Donations and Fundraising (Archive)
    • Disputes and Security Archives
      • Disputes and claims (Archive)
      • Fraud, phishing and spoof (Archive)
    • My Business Archives
      • Merchant services (Archive)
      • Reporting and tracking (Archive)
      • Shipping (Archive)
    • PayPal Products Archives
      • PayPal Debit Mastercard (Archive)
      • PayPal Extras MasterCard (Archive)
      • PayPal Mobile & Other Services (Archive)
      • Student Accounts (Archive)
      • Bill Me Later (Archive)
    • Getting to know PayPal
      • My PayPal account
      • Security and protection
    • Receiving and sending money
      • Buying with PayPal
      • Selling with PayPal
    • PayPal Here UK
      • PayPal Here News and Events
      • PayPal Here Community
      • Chip and Pin Card Reader
      • PayPal Here App

The Community Forum is not available for new posts or responses; previous posts remain available to review. For comprehensive support options, please visit PayPal.com/HelpCenter
Merchant Technical Support: For technical support and related questions, please visit our Technical Support Help Center or Developer Central

If you want to report illegal content under the EU Digital Services Act, please do so here

since ‎Aug-07-2019
Country: Spain
Type: Business
adharaww
adharaww Contributor
Contributor
3
Posts
0
Kudos
0
Solutions
Your PayPal Anniversary
The Return
Active
View all
Topics adharaww has Participated In
  • Topics adharaww has Participated In
  • Latest Contributions by adharaww

Re: Smart Payment Buttons custom integration probl...

by serioustom in SDKs
‎Apr-30-2020 01:14 AM
‎Apr-30-2020 01:14 AM
I have pretty much exactly the same issue using the python sdk. It works fine for me with the JS smart buttons but when following the documentation on https://developer.paypal.com/docs/checkout/integrate/#5-capture-the-transaction to replace it with server-side calls I get:   SyntaxError: Unexpected token < in JSON at position 0Error: Unexpected token < in JSON at position 0 at jr.error (https://www.paypal.com/sdk/js?currency=GBP&client-id=XXX)  at Object.<anonymous> (https://www.paypal.com/sdk/js?currency=GBP&client-id=XXX  ... View more

Smart Payment Buttons server integration

by adharaww Contributor in PayPal Payments Standard
‎Nov-04-2019 03:36 PM
‎Nov-04-2019 03:36 PM
Hi all, I'm following this example to integrate paypal with my java webapp: Smart Payment Buttons with server integration   In javascript function I want to send several values and I use the body attribute to send it to server:     <script> paypal.Buttons({ createOrder: function() { return fetch('${pageContext.request.contextPath}/createOrder', { method: 'post', headers: {'content-type': 'application/json'}, body: JSON.stringify({ action: 'paypal', page: 'paypal' }) }).then(function(res) { return res.json(); }).then(function (data) { return data.id; }); }, style: { color: 'blue', shape: 'rect', label: 'paypal', height: 40 } }).render('#ppBtn'); </script>     But I'm unable to get the parameters I defined in the body attribute. I tried everything: request.getParameter("action") request.getAttribute("action") request.getReader()   But anything worked. Could you help me to find the best way to achieve this?   Thank you very much   ... View more

Custom paypal payment button

by adharaww Contributor in Merchant Products and Services Archives
‎Aug-07-2019 08:58 AM
‎Aug-07-2019 08:58 AM
Paypal has the following page: https://developer.paypal.com/demo/checkout/#/pattern/radio where you can set buttons with radio buttons.   The button payment when paypal is choosen works as expected, open the popup paypal to pay.   What I want to achieve is to make a similar payment button when credit card payment is choosen, but I don't know how to set the button to display the card payment in paypal.   I found that the button generated code contains a parameter named data-funding-source.   If you view the responsive feature in the page I shared at the beginning, you can see the button VISA, working like I would like the button I want to create works.   Is that possible?   Thank you ... View more
Labels:
  • Labels:
  • PayPal Buttons
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
Welcome to the PayPal Community!