mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Mark WePay ACH token as verfied once used
This commit is contained in:
parent
a908e75757
commit
11090536e3
@ -128,6 +128,16 @@ class WePayPaymentDriver extends BasePaymentDriver
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
public function createPayment($ref = false, $paymentMethod = null)
|
||||||
|
{
|
||||||
|
parent::createPayment($ref, $paymentMethod);
|
||||||
|
|
||||||
|
if ($paymentMethod->payment_type_id = PAYMENT_TYPE_ACH) {
|
||||||
|
$paymentMethod->status = PAYMENT_METHOD_STATUS_VERIFIED;
|
||||||
|
$paymentMethod->save();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected function creatingPaymentMethod($paymentMethod)
|
protected function creatingPaymentMethod($paymentMethod)
|
||||||
{
|
{
|
||||||
$source = $this->tokenResponse;
|
$source = $this->tokenResponse;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user