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 ‎Apr-23-2021
Country: Malaysia
Type: Business
antoniooi
antoniooi Contributor
Contributor
4
Posts
0
Kudos
0
Solutions
Active
Giving
The Return
Ice Breaker
View all
Latest Contributions by antoniooi
  • Topics antoniooi has Participated In
  • Latest Contributions by antoniooi

Re: PayPal JavaScript SDK: How to change the 'Buy ...

by antoniooi Contributor in SDKs
‎May-19-2021 03:44 AM
‎May-19-2021 03:44 AM
I have found the answer and has been posted as answer in Stack Overflow. ... View more

PayPal JavaScript SDK: How to change the 'Buy Now'...

by antoniooi Contributor in SDKs
‎May-18-2021 04:15 AM
‎May-18-2021 04:15 AM
I'm using the latest version of PayPal JavaScript SDK (instead of the deprecated checkout.js) together with the Smart Button for my payment page. When PayPal shows the credit/debit card data entry form, at the bottom, I want it to display 'Pay Now' instead of 'Buy Now' because I'm not selling merchandise items but services, how can I do that?   I followed this example, but it only changes the main button with 'Pay with PayPal' together with the 'Credit/Debit Card' button, but the blue color 'Buy Now' still showing below the form:   paypal.Buttons({ style: { layout: 'vertical', color: 'gold', shape: 'rect', label: 'pay' // I changed to 'pay' instead } }).render('#paypal-button-container'); I even follow this guide to add the commit=true parameter to the SDK but no luck:   <script src="https://www.paypal.com/sdk/js?client-id=YOUR_CLIENT_ID&commit=true"></script> Below is my full code just in case you need it:   paypal.Buttons({ style: { layout: 'vertical', color: 'gold', shape: 'rect', label: "pay" }, createOrder: function (data, actions) { // This function sets up the details of the transaction, including the amount and line item details. return actions.order.create({ purchase_units: [{ amount: { currency_code: "MYR", value: "1.00" } }], application_context: { shipping_preference: "NO_SHIPPING" } }); }, onApprove: function (data, actions) { // This function captures the funds from the transaction. return actions.order.capture() .then(function (details) { // This function shows a transaction success message to your buyer. alert('Transaction completed by ' + details.payer.name.given_name); }); } }).render('#gPayContainer'); //This function displays Smart Payment Buttons on your web page. Any advice would be appreciated, thank you!   ... View more

Re: Error: Unexpected currency: USD passed to orde...

by antoniooi Contributor in REST APIs
‎May-18-2021 01:12 AM
‎May-18-2021 01:12 AM
Hi, where did you get the sample code for the actions.payment.create? I can only see the actions.order.create all over the PayPal developer site.   ... View more

Re: Paypal has stupid confusing docs explaining th...

by antoniooi Contributor in Sandbox Environment
‎Apr-23-2021 12:05 PM
‎Apr-23-2021 12:05 PM
I don't understand why they have to make it so confusing and complicated. They just simply branch out anything as they like till you really don't know what to choose and how to choose. Just the naming of their products and API alone is so much complicated and confusing. I can feel that the person(s) who built their APIs and documentation is pretty messy in his/her brains and don't know what to do to simplify stuff. That makes their API sounds scary to many developers around the world and don't know how to go about getting started with it. ... View more
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