mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 01:04:30 -04:00
Mark WePay ACH token as verfied once used
This commit is contained in:
parent
11090536e3
commit
b9f8fd4376
@ -132,7 +132,7 @@ class WePayPaymentDriver extends BasePaymentDriver
|
||||
{
|
||||
parent::createPayment($ref, $paymentMethod);
|
||||
|
||||
if ($paymentMethod->payment_type_id = PAYMENT_TYPE_ACH) {
|
||||
if ($paymentMethod && $paymentMethod->payment_type_id = PAYMENT_TYPE_ACH) {
|
||||
$paymentMethod->status = PAYMENT_METHOD_STATUS_VERIFIED;
|
||||
$paymentMethod->save();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user