Skip to content

Commit

Permalink
Fix scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 17, 2019
1 parent bde49e0 commit a6d4475
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/stripe/class/stripe.class.php
Expand Up @@ -247,6 +247,8 @@ public function customerStripe(Societe $object, $key = '', $status = 0, $createi
*/
public function getPaymentMethodStripe($paymentmethod, $key = '', $status = 0)
{
$stripepaymentmethod = null;

try {
// Force to use the correct API key
global $stripearrayofkeysbyenv;
Expand All @@ -261,6 +263,7 @@ public function getPaymentMethodStripe($paymentmethod, $key = '', $status = 0)
{
$this->error = $e->getMessage();
}

return $stripepaymentmethod;
}

Expand Down

0 comments on commit a6d4475

Please sign in to comment.