Fix scrutinizer
This commit is contained in:
parent
bde49e05e7
commit
a6d4475aff
@ -247,6 +247,8 @@ class Stripe extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function getPaymentMethodStripe($paymentmethod, $key = '', $status = 0)
|
public function getPaymentMethodStripe($paymentmethod, $key = '', $status = 0)
|
||||||
{
|
{
|
||||||
|
$stripepaymentmethod = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Force to use the correct API key
|
// Force to use the correct API key
|
||||||
global $stripearrayofkeysbyenv;
|
global $stripearrayofkeysbyenv;
|
||||||
@ -261,6 +263,7 @@ class Stripe extends CommonObject
|
|||||||
{
|
{
|
||||||
$this->error = $e->getMessage();
|
$this->error = $e->getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $stripepaymentmethod;
|
return $stripepaymentmethod;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user