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 ‎Jul-15-2018
Country: Russia
Type: Business
MariaMiArt
MariaMiArt Contributor
Contributor
6
Posts
1
Kudos
2
Solutions
Your PayPal Anniversary
The Return
Liked
Ice Breaker
Helper
Friendly
Active
View all
Latest Contributions by MariaMiArt
  • Topics MariaMiArt has Participated In
  • Latest Contributions by MariaMiArt

Re: Quantity not being returned in PDT

by MariaMiArt Contributor in PayPal Reporting
‎Jul-16-2018 08:58 AM
1 Kudo
‎Jul-16-2018 08:58 AM
1 Kudo
I use this code in PHP:   if (isset($_GET['tx'])) { $query_data = [ 'cmd' => '_notify-synch', 'tx' => $_GET['tx'], 'at' => /* my token from paypal settings */ ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, 'PayPal'); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($query_data)); curl_setopt($ch, CURLOPT_URL, $this->url); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); } ... View more

Re: Quantity not being returned in PDT

by MariaMiArt Contributor in PayPal Reporting
‎Jul-16-2018 08:56 AM
‎Jul-16-2018 08:56 AM
No, would not. You are not finished the whole process. I mean at this step you are not sure that transaction is successful.   At your step Paypal returns you only one important parameter - "tx", and Paypal wait you necessarily check transaction through POST.   When you will request (POST) and get response you will get all of parameters about transaction, include quantity.   Read this - https://developer.paypal.com/docs/classic/products/payment-data-transfer/ ... View more

Re: PHP Curl return FAIL from Live Paypal PDT URL

by MariaMiArt Contributor in PayPal Reporting
‎Jul-16-2018 08:48 AM
‎Jul-16-2018 08:48 AM
After 16 hours of searching I found the solution here - https://github.com/apih/paypal-ipn-pdt Here is the code: $query_data = [ 'cmd' => '_notify-synch', 'tx' => $GET['tx'], 'at' => $this->token ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, 'PayPal'); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($query_data)); curl_setopt($ch, CURLOPT_URL, $this->url); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); ... View more

Re: Quantity not being returned in PDT

by MariaMiArt Contributor in PayPal Reporting
‎Jul-16-2018 06:26 AM
‎Jul-16-2018 06:26 AM
Do you send POST request to Paypal with your TX (transaction ID returned to you with GET response)? ... View more

Re: Quantity not being returned in PDT

by MariaMiArt Contributor in PayPal Reporting
‎Jul-16-2018 02:33 AM
‎Jul-16-2018 02:33 AM
The following steps illustrate the basic flow of a PDT transaction. A customer submits a payment. PayPal sends the transaction ID of the payment through HTTP as a GET variable (tx). This information is sent to the Return URL you specified in your PayPal account profile. (You are here. You need to make POST request. Read below.) Your return URL web page contains an HTML POST form that retrieves the transaction ID and sends the transaction ID and your unique PDT token to PayPal. PayPal replies with a message indicating SUCCESS or FAIL. The SUCCESS message includes transaction details, one per line, in the <Key>=<Value> format. This key-value pair string is URL encoded. Your web page parses the message and then displays the information for the customer. ... View more

PHP Curl return FAIL from Live Paypal PDT URL

by MariaMiArt Contributor in PayPal Reporting
‎Jul-15-2018 11:21 PM
‎Jul-15-2018 11:21 PM
Hello, I have a code for postback that returns me FAIL on live URL, but it works fine in sandbox. What I need to do to get it working? Thank you!   curl_setopt_array($request, array ( CURLOPT_URL => 'https://www.paypal.com/cgi-bin/webscr', CURLOPT_POST => TRUE, CURLOPT_TIMEOUT => 10, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_POSTFIELDS => http_build_query(array ( 'cmd' => '_notify-synch', 'tx' => $GET['tx'], 'at' => 'my_token_here', )), CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_HEADER => FALSE )); ... 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
Welcome to the PayPal Community!