mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Add SOFORT support on Stripe
This commit is contained in:
parent
4c6031d1a3
commit
b5bd3cb632
@ -403,7 +403,8 @@ if (! defined('APP_NAME')) {
|
||||
define('PAYMENT_TYPE_MAESTRO', 21);
|
||||
define('PAYMENT_TYPE_SOLO', 22);
|
||||
define('PAYMENT_TYPE_SWITCH', 23);
|
||||
define('PAYMENT_TYPE_ALIPAY', 24);
|
||||
define('PAYMENT_TYPE_ALIPAY', 28);
|
||||
define('PAYMENT_TYPE_SOFORT', 29);
|
||||
|
||||
define('PAYMENT_METHOD_STATUS_NEW', 'new');
|
||||
define('PAYMENT_METHOD_STATUS_VERIFICATION_FAILED', 'verification_failed');
|
||||
|
@ -67,7 +67,7 @@ class PaymentDatatable extends EntityDatatable
|
||||
return '<img height="22" src="' . URL::to('/images/credit_cards/' . $code . '.png') . '" alt="' . htmlentities($card_type) . '"> •••' . $model->last4 . ' ' . $expiration;
|
||||
} elseif ($model->email) {
|
||||
return $model->email;
|
||||
} else {
|
||||
} elseif ($model->payment_type) {
|
||||
return trans('texts.payment_type_' . $model->payment_type);
|
||||
}
|
||||
} elseif ($model->last4) {
|
||||
|
@ -250,6 +250,8 @@ class StripePaymentDriver extends BasePaymentDriver
|
||||
$payment->payment_status_id = $this->purchaseResponse['status'] == 'succeeded' ? PAYMENT_STATUS_COMPLETED : PAYMENT_STATUS_PENDING;
|
||||
if ($isAlipay) {
|
||||
$payment->payment_type_id = PAYMENT_TYPE_ALIPAY;
|
||||
} elseif ($this->shouldUseSource()) {
|
||||
$payment->payment_type_id = PAYMENT_TYPE_SOFORT;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user