Fix scrutinizer

This commit is contained in:
Laurent Destailleur 2019-06-17 18:24:45 +02:00
parent bde49e05e7
commit a6d4475aff

View File

@ -247,6 +247,8 @@ class Stripe extends CommonObject
*/
public function getPaymentMethodStripe($paymentmethod, $key = '', $status = 0)
{
$stripepaymentmethod = null;
try {
// Force to use the correct API key
global $stripearrayofkeysbyenv;
@ -261,6 +263,7 @@ class Stripe extends CommonObject
{
$this->error = $e->getMessage();
}
return $stripepaymentmethod;
}