mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
* View credit card: send more billing data to Stripe when available As commit8e8414ab49
shows, this commit had more code that was wrongly commited inff064367d6
by another author * Stripe: fill payment card details
This commit is contained in:
parent
989f114154
commit
b0e680ee5c
@ -437,6 +437,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;
|
||||
|
@ -254,7 +254,7 @@
|
||||
<div class="col-md-6">
|
||||
{!! Former::select('country_id')
|
||||
->placeholder(trans('texts.country_id'))
|
||||
->fromQuery($countries, 'name', 'id')
|
||||
->fromQuery($countries, 'name', ['value' => 'id', 'data-iso_3166_2' => 'iso_3166_2'])
|
||||
->addGroupClass('country-select')
|
||||
->label('') !!}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user