mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Stripe: fill payment card details
This commit is contained in:
parent
8e8414ab49
commit
cee4652b7c
@ -273,6 +273,11 @@ class StripePaymentDriver extends BasePaymentDriver
|
||||
} elseif ($isBitcoin) {
|
||||
$payment->payment_type_id = PAYMENT_TYPE_BITCOIN;
|
||||
}
|
||||
} else if (! $paymentMethod && $this->isGatewayType(GATEWAY_TYPE_CREDIT_CARD) && ! strcmp($this->purchaseResponse['payment_method_details']['type'], "card")) {
|
||||
$card = $this->purchaseResponse['payment_method_details']['card'];
|
||||
$payment->last4 = $card['last4'];
|
||||
$payment->expiration = $card['exp_year'] . '-' . $card['exp_month'] . '-01';
|
||||
$payment->payment_type_id = PaymentType::parseCardType($card['brand']);
|
||||
}
|
||||
|
||||
return $payment;
|
||||
|
Loading…
x
Reference in New Issue
Block a user