skip to Main Content

Paypal api – i tried implementing "srmklive/paypal": "~1.0", into my laravel project locally, while testing the implementation, i got an error below

Undefined index: secret lluminateFoundationBootstrapHandleExceptions::handleError C:wamp64wwwchefruntownvendorsrmklivepaypalsrcTraitsPayPalRequest.php:329 private function setApiProviderConfiguration($credentials){ // Setting PayPal API Credentials collect($credentials[$this->mode])->map(function ($value, $key) { $this->config[$key] = $value; }); // Setup PayPal API Signature value to use. $this->config['signature'] = empty($this->config['certificate']) ? $this->config['secret'] : $this->config['certificate']; $this->paymentAction = $credentials['payment_action']; $this->locale…

VIEW QUESTION

Not getting refresh_token when authenticating with paypal API

Node.js Using paypal sandbox env const PAYPAL_BASE_URL = "https://api.sandbox.paypal.com"; const PAYPAL_TOKEN_URL = `${PAYPAL_BASE_URL}/v1/oauth2/token`; const tokenOptions = { method: "post", headers: { "Content-Type": "application/x-www-form-urlencoded", "Access-Control-Allow-Credentials": true, }, data: qs.stringify({ grant_type: "client_credentials" }), auth: { username: `${CLIENT_ID}`, password: `${CLIENT_SECRET}`, }, url: `${PAYPAL_TOKEN_URL}`,…

VIEW QUESTION
Back To Top
Search