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 will no longer be available starting June 30, 2025. Please note that the forum is now closed for new posts and responses, but previous posts will remain accessible for review until June, 30 2025. 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-18-2018
Country: United Kingdom
Type: Business
WayneSmallman
WayneSmallman Contributor
Contributor
5
Posts
0
Kudos
0
Solutions
Your 3rd PayPal Anniversary
Your PayPal Anniversary
The Return
Ice Breaker
Active
View all
Latest Contributions by WayneSmallman
  • Topics WayneSmallman has Participated In
  • Latest Contributions by WayneSmallman

Authentication failing with PayPal Checkout Server...

by WayneSmallman Contributor in Merchant Products and Services Archives
‎Mar-02-2021 02:07 AM
‎Mar-02-2021 02:07 AM
Hi, I've followed the guide for implementing the PayPal Checkout Server Integration and it's failing via Node on the create payment endpoint with the message:   Authentication failed due to invalid authentication credentials or a missing Authorization header. Thing is, there's no mention of headers anywhere in the guide. However, I am passing the client ID and secret, as instructed by the guide. ... View more
Labels:
  • Labels:
  • Express Checkout

Re: Failed to load https://www.sandbox.paypal.com/...

by WayneSmallman Contributor in Sandbox Environment
‎Aug-23-2018 01:00 AM
‎Aug-23-2018 01:00 AM
I'm having the same problem, but what I don't understand is that it was working a while ago when I last worked on the project. ... View more

Re: Getting error: Http response code 400 when acc...

by WayneSmallman Contributor in Sandbox Environment
‎Jul-19-2018 11:27 PM
‎Jul-19-2018 11:27 PM
Any thoughts on this? PayPal's own support aren't responding and this is now an urgent issue. ... View more

Re: Getting error: Http response code 400 when acc...

by WayneSmallman Contributor in Sandbox Environment
‎Jul-18-2018 11:32 PM
‎Jul-18-2018 11:32 PM
While testing, I decided to send to items: $itemsList->setItems(array()); ... and it worked. So if I send items I get an error, but if I don't, I get a success. I could be wrong, but this appears to be an error with the sandbox itself.   ... View more

Getting error: Http response code 400 when accessi...

by WayneSmallman Contributor in Sandbox Environment
‎Jul-18-2018 05:08 AM
‎Jul-18-2018 05:08 AM
Having followed the code in a GitHub example, and some suggestions here (additional error messages, and an error method), nothing is able to get me south of: $payment->create($this->_api_context); and into the exception handling of the try block, or beyond the generic error message: Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment. Here is the method I'm using: public function __construct() { // PayPal API context. $configPayPal = \Config::get('paypal'); $this->_api_context = new ApiContext( new OAuthTokenCredential( $configPayPal['client_id'], $configPayPal['secret'] ) ); $this->_api_context->setConfig($configPayPal['settings']); } public function makePayment(Request $request) { $payer = new Payer(); $payer->setPaymentMethod('paypal'); $orderForPayment = $request->get('orderForPayment'); $orderTotal = $request->get('orderTotal'); $orderTax = $request->get('orderTax'); $shipping = 0.66; $items = []; foreach ($orderForPayment as $index => $item): $items[$index] = new Item(); $items[$index]->setName($item['name']) ->setCurrency('GBP') ->setQuantity($item['qty']) ->setPrice($item['subtotal']); endforeach; $itemsList = new ItemList(); $itemsList->setItems($items); $details = new Details(); $details->setShipping($shipping) ->setTax($orderTax) ->setSubtotal($orderTotal); $amount = new Amount(); $amount->setCurrency('GBP') ->setTotal($orderTotal + $orderTax + $shipping) ->setDetails($details); $transaction = new Transaction(); $transaction->setAmount($amount) ->setItemList($itemsList) ->setDescription("Your transaction description."); $redirect_urls = new RedirectUrls(); $redirect_urls->setReturnUrl(URL::route('getPaymentStatus')) ->setCancelUrl(URL::route('getPaymentStatus')); $payment = new Payment(); $payment->setIntent("Sale") ->setPayer($payer) ->setRedirectUrls($redirect_urls) ->setTransactions(array($transaction)); //dd($payment->create($this->_api_context)); exit; try { $payment->create($this->_api_context); } catch (PayPal\Exception\PayPalConnectionException $ex) { // Prints the Error Code echo $ex->getCode(); // Prints the detailed error message echo $ex->getData(); echo $this->PayPalError($ex); } catch (Exception $ex) { echo $this->PayPalError($ex); } foreach ($payment->getLinks() as $link) { if ($link->getRel() == 'approval_url') { $redirect_url = $link->getHref(); break; } } // Add payment ID to the session. \Session::put('paypal_payment_id', $payment->getId()); if (isset($redirect_url)) { // Redirect to PayPal. return Redirect::away($redirect_url); } \Session::put('error', "Unknown error occurred"); return Redirect::route('makePayment'); } I've checked the values down through the method, to make sure they're integers and not strings. I've tried swapping the currencies around between GBP and USD. I've not used PayPal's API before, so it's possible I've got something wrong, but the generic error is killing the debug process. ... 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!