John Davidson

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

0 comments
Message:



Undefined index: secret
lluminate\Foundation\Bootstrap\HandleExceptions::handleError
C:\wamp64\www\chefruntown\vendor\srmklive\paypal\src\Traits\PayPalRequest.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 = $credentials['locale'];

$this->certificate = $this->config['certificate'];

$this->validateSSL = $credentials['validate_ssl'];

$this->setApiProvider($credentials);
}


My Answer:
a simple PHP script that displays a message on the screen. Here is the code:

php
echo "Hello, World!";
?>


When you run this script, it will output "Hello, World!" on the screen. You can save this code in a file with a .php extension and open it in a web browser to see the message displayed.

Rate this post

3 of 5 based on 3313 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us