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 ‎Jul-31-2021
Country: Italy
Type: Business
blackout69
blackout69 Contributor
Contributor
3
Posts
0
Kudos
0
Solutions
Helper
Ice Breaker
The Return
Active
View all
Latest Contributions by blackout69
  • Topics blackout69 has Participated In
  • Latest Contributions by blackout69

Re: PDT automatic return url non work

by blackout69 Contributor in PayPal Reporting
‎Aug-04-2021 11:29 AM
‎Aug-04-2021 11:29 AM
Hello and thanks for the reply, my problem is as follows: When I simulate a transaction with a sandbox account, the payment goes through, but the script I wrote in my auto return url does not run. I'm not getting any error messages. Except my script.php doesn't run at the end of the transaction       onApprove: function(data, actions) { return actions.order.capture().then(function(orderData) { var transaction = orderData.purchase_units[0].payments.captures[0]; actions.redirect('myscript.php?tx=' + transaction.id); }); },     To force my script.php to run I had to create a javascript redirect. So I solved my problem. At this point I wonder what is the real usefulness allowed by paypal to be able to configure a return page? Maybe just for the IPN? Thanks for any answers  ... View more

Re: PDT automatic return url non work

by blackout69 Contributor in PayPal Reporting
‎Aug-01-2021 01:11 PM
‎Aug-01-2021 01:11 PM
Hi everyone, This is the code I use to execute the transaction.   function initPayPalButton() { paypal.Buttons({ style: { shape: 'rect', color: 'gold', layout: 'vertical', label: 'paypal', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{"description":"My Item","amount":{"currency_code":"EUR","value":10}}] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(orderData) { // Full available details console.log('Capture result', orderData, JSON.stringify(orderData, null, 2)); var url = 'myscript.php; actions.redirect(url); }); }, onError: function(err) { console.log(err); } }).render('#paypal-button-container'); }   This is the code I use to execute the transaction. The redirect works, but I don't receive the transactionID (tx) value via GET. As a php script I am using this: https://github.com/paypal/pdt-code-samples/blob/master/paypal_pdt.php  How can I get the transactionID?   ... View more

PDT automatic return url non work

by blackout69 Contributor in PayPal Reporting
‎Jul-31-2021 02:36 PM
‎Jul-31-2021 02:36 PM
Hello everybody, i can't get auto return to work on a url. On sandbox, I have enabled the automatic return, set my url and enabled the PDT. When I simulate a transaction with a sandbox account, the payment goes through, but the script I wrote in my auto return url does not run. Can anyone tell me where I'm wrong? Thank you in advance blackout69 ... 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