Skip to main content

PayPal Community

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

Le forum de Communauté ne sera plus disponible à partir du 30 Juin 2025. 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 ‎Jul-26-2019
Country: Italy
Type: Business
nick_developer
nick_developer Contributor
Contributor
4
Posts
0
Kudos
0
Solutions
Your PayPal Anniversary
Ice Breaker
The Return
Active
View all
Latest Contributions by nick_developer
  • Topics nick_developer has Participated In
  • Latest Contributions by nick_developer

Best practice for payments between users

by nick_developer Contributor in SDKs
‎Dec-09-2020 07:12 AM
‎Dec-09-2020 07:12 AM
Hi, I'm designing a system where users can sell items. I'd like to manage payments in that way   1. user A has his own objects on the system (and user A have a regular PayPal account) 2. user B buy a item from user A  3. The selling process managed by PayPal should transfer money from user B to user A.    Users must be able to set link their Paypal account in their profile to sell items.  What's the best practice to implement this model ?  -  Have I to ask and use the PayPaluserID to users that want to sell things (maybe set this data on their profile)?  -  Do I have to use the Adaptive Payments (but seems only for some authorized applications)   thanks, best regards  nick ... View more
Labels:
  • Labels:
  • REST SDK

onApprove data.paymentID is undefined

by nick_developer Contributor in REST APIs
‎Sep-24-2019 09:51 AM
‎Sep-24-2019 09:51 AM
  Hi,  I'm building a client approve then a server side order capture.     After calling onApprove in client, I get the data.orderID and data.payerID from PayPal response, but the data.paymentID is undefined.  On older API I was using payerID and paymentID after onAuthorize (now it's onApprove,right?)    So how can I capture the order on server side if I have no paymentID ?  On the new API to capture an order on server side is needed only the data.oderID received from Paypal Response ?   thanks    ... View more

Smart Payment Buttons give error but transaction i...

by nick_developer Contributor in REST APIs
‎Sep-24-2019 05:25 AM
‎Sep-24-2019 05:25 AM
  Hi, I've integrated the Smart Payment Buttons in my website. All the payment procedure goes ok, but sometimes it gives an Error while the transaction is processed correctly by PayPal.     the /paypal_transaction_check/ function get the response and make a check if  $data['data']['status'] from the PayPal response si "COMPLETED".   Sometimes the page goes in /checkout/payment_error  but the transaction si successful passing "COMPLETED" in the response.    It happens also on live environments and only on some cases    Can be a Timeout error ?    here is the client code    paypal.Buttons({     style: {     layout:  'vertical',     color:   'gold',     shape:   'rect',     label:   'pay',     tagline: false   },     createOrder: function(data, actions) {       // Set up the transaction       return actions.order.create({         application_context:{           brand_name: 'Test Store',           locale:'it-IT',           shipping_preference:'NO_SHIPPING',           user_action:'PAY_NOW'           },           intent: "CAPTURE",         purchase_units: [{           reference_id: '<?= $order_reference_id ?>',           description: 'Cool item',           custom_id:'<?= $order_reference_id ?>',           amount: {             currency_code: 'EUR',             value: '99.00'           }         }],       });     },     onApprove: function(data, actions) {       // Capture the funds from the transaction       $('#paypal-button-container').hide();       $('#payment-wait').show();            return actions.order.capture().then(function(details) {                  fetch('/paypal_transaction_check/', {           method: 'post',           headers: {             'content-type': 'application/json'           },           body: JSON.stringify({             data: details,             order_id: '100100100'           })         }).then(response => {                      if(response.status == 200) {                 window.location.href = "/checkout/paypal_success/<?= $order_reference_id ?>";           } else {                 window.location.href = "/checkout/payment_error";           }         });                      });     },     onCancel: function (data) {     // Show a cancel page, or return to cart       window.location.href = "/checkout/payment";     },     onError: function (err) {       window.location.href = "/checkout/payment_error";   }   }).render('#paypal-button-container');       ... View more

Avoid asking for Phone number during credit card c...

by nick_developer Contributor in REST APIs
‎Jul-26-2019 07:31 AM
‎Jul-26-2019 07:31 AM
  hi, I'm wondering if it's possible do not asking for user phone number during the credit card payment checkout.  some users don't like to share their phone number so ...   I searched on the API actions.order.create  application_context   parameters but I haven't found anything to force not asking the phone number.   thanks for help   ... 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