Static analysis
This commit is contained in:
parent
0c68bbe594
commit
589aad7ade
|
|
@ -241,17 +241,17 @@ class UpdatePaymentMethods
|
|||
* @class \Stripe\PaymentMethod $method
|
||||
* @property \Stripe\StripeObject $card
|
||||
* @class \Stripe\StripeObject $card
|
||||
* @property string $exp_year
|
||||
* @property string $exp_month
|
||||
* @property string $brand
|
||||
* @property string $last4
|
||||
* @property string|null $exp_year
|
||||
* @property string|null $exp_month
|
||||
* @property string|null $brand
|
||||
* @property string|null $last4
|
||||
*/
|
||||
|
||||
$payment_meta = new \stdClass();
|
||||
$payment_meta->exp_month = (string) $method->card->exp_month ?? '00';
|
||||
$payment_meta->exp_year = (string) $method->card->exp_year ?? '0000';
|
||||
$payment_meta->brand = (string) $method->card->brand ?? 'visa';
|
||||
$payment_meta->last4 = (string) $method->card->last4 ?? 'link';
|
||||
$payment_meta->exp_month = (string) ($method->card->exp_month ?? '00');
|
||||
$payment_meta->exp_year = (string) ($method->card->exp_year ?? '0000');
|
||||
$payment_meta->brand = (string) ($method->card->brand ?? 'visa');
|
||||
$payment_meta->last4 = (string) ($method->card->last4 ?? 'link');
|
||||
$payment_meta->type = GatewayType::CREDIT_CARD;
|
||||
|
||||
return $payment_meta;
|
||||
|
|
|
|||
Loading…
Reference in New Issue