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 ‎Feb-21-2024
AlinM
AlinM Contributor
Contributor
2
Posts
2
Kudos
0
Solutions
Liked
Ice Breaker
The Return
Active
View all
Latest Contributions by AlinM
  • Topics AlinM has Participated In
  • Latest Contributions by AlinM

Re: Can't capture order, loop on action-required

by AlinM Contributor in REST APIs
‎Feb-26-2024 08:56 AM
1 Kudo
‎Feb-26-2024 08:56 AM
1 Kudo
Thank you for replying. Indeed I wasn't sending [] (empty square brackets) but empty string. My curl framework wasn't sending empty JSON (empty brackets) when the request was POST and there was no data to be sent.   Another problem was the currency. I was testing with EUR and the merchant account was, somehow, accepting only USD. I don't think I've seen anywhere written this info into the docs. I had to figure it out after days of debugging.   So, for further developers: make sure you send [] even if the request is empty POST and check your currency. The PayPal payment page will let you pay with any other currency, but when you'll try to capture the order you'll receive another "payer-action" response with "checkoutnow" link which will lead you into a loop.   Thank you! ... View more

Can't capture order, loop on action-required

by AlinM Contributor in REST APIs
‎Feb-21-2024 05:55 AM
1 Kudo
‎Feb-21-2024 05:55 AM
1 Kudo
Hi,   I'm trying to implement Orders API v2 and I can't capture the order.   I create the order with intent = CAPTURE, user_action = PAY_NOW and payment_method_preference = IMMEDIATE_PAYMENT_REQUIRED.   Then I redirect the user to payer-action, I pay (on sandbox), then I'm redirected back to return_url where I'm supposed to capture the order. Here I call orders endpoint in order to get full order details and if status is "APPROVED" and intent is "CAPTURE" I proceed to capture the order by posting the payload below to the capture link I receive. The server replies with PAYER_ACTION_REQUIRED and another payer-action (checkoutnow) link and here starts the loop; I go again to checkoutnow and so on.         {"payment_source":{"paypal":{"email_address":"mymail","experience_context":{"user_action":"PAY_NOW","return_url":"mysite/callback\/paypal_v2","cancel_url":"mysite/callback\/paypal_v2"}}}}         Initially I tried to capture the order without sending any payload, as there aren't any required fields for this endpoint, but it replies with the error below:       {"name":"INVALID_REQUEST","message":"Request is not well-formed, syntactically incorrect, or violates schema.","debug_id":"a8d16e5ecc4a7","details":[{"field":"/","location":"body","issue":"MALFORMED_REQUEST_JSON","description":"The request JSON is not well formed."}],"links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-MALFORMED_REQUEST_JSON","rel":"information_link","encType":"application/json"}]}     Can you please guide me how should I capture an order? I'm stuck. ... 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!