minor fixes for type checks

This commit is contained in:
David Bomba 2022-11-27 10:47:59 +11:00
parent 31988d0387
commit d21144f64b

View File

@ -84,7 +84,7 @@ class SEPA
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all()); $this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
$this->stripe->payment_hash->save(); $this->stripe->payment_hash->save();
if (property_exists($gateway_response, 'status') && ($gateway_response->status == 'processing' || $gateway_response->status === 'succeeded')) { if (property_exists($gateway_response, 'status') && ($gateway_response->status == 'processing' || $gateway_response->status == 'succeeded')) {
if ($request->store_card) { if ($request->store_card) {
$this->storePaymentMethod($gateway_response); $this->storePaymentMethod($gateway_response);
} }