amsgames / laravel-shop

Laravel shop package
MIT License
482 stars 166 forks source link

Undefined property: stdClass::$name #5

Closed fwartner closed 9 years ago

fwartner commented 9 years ago

When performing a checkout using paypalExpress, i´m getting:

at HandleExceptions->handleError('8', 'Undefined property: stdClass::$name', '/home/vagrant/Code/Laravel/cookinio/vendor/amsgames/laravel-shop-gateway-paypal/src/GatewayPayPalExpress.php', '131', array('order' => object(Order), 'payer' => object(Payer), 'list' => object(ItemList), 'details' => object(Details), 'amount' => object(Amount), 'transaction' => object(Transaction), 'redirectUrls' => object(RedirectUrls), 'payment' => object(Payment), 'e' => object(PayPalConnectionException), 'response' => object(stdClass))) in GatewayPayPalExpress.php line 131

Any way way to fix this?

fwartner commented 9 years ago

This is what i get, when i´m dumping the response:

PayPalConnectionException {#443 ▼ -url: "https://api.paypal.com/v1/oauth2/token" -data: "{"error":"invalid_client","error_description":"The client credentials are invalid"}"

message: "Got Http response code 401 when accessing https://api.paypal.com/v1/oauth2/token."

code: 401

file: "/home/vagrant/Code/Laravel/cookinio/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php"

line: 180

-trace: array:60 [▶] } {#426 ▼ +"error": "invalid_client" +"error_description": "The client credentials are invalid" }

fwartner commented 9 years ago

Sandbox was turned off. Sorry.