diff --git a/src/PayPalRequestTrait.php b/src/PayPalRequestTrait.php index bc86fc2f..3394d1c4 100644 --- a/src/PayPalRequestTrait.php +++ b/src/PayPalRequestTrait.php @@ -54,6 +54,11 @@ private static function setConfig() self::$config['gateway_url'] = 'https://www.paypal.com'; } + // Adding params outside sandbox / live array + self::$config['payment_action'] = $paypal['payment_action']; + self::$config['currency'] = $paypal['currency']; + self::$config['notify_url'] = $paypal['notify_url']; + unset($paypal); }