From 2ef88fb8591978c45fc9a635474a630e6091876b Mon Sep 17 00:00:00 2001 From: Dan Holliday Date: Tue, 7 Apr 2020 15:47:49 +0100 Subject: [PATCH] Update GoCardlessV2RedirectPaymentDriver.php Fixed an issue where payments from gocardless were being logged as ACH payments incorrectly. This then stops the auto billing working for gocardless. --- app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php b/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php index d2b8acf9ef71..ae47f16a2960 100644 --- a/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php +++ b/app/Ninja/PaymentDrivers/GoCardlessV2RedirectPaymentDriver.php @@ -86,7 +86,7 @@ class GoCardlessV2RedirectPaymentDriver extends BasePaymentDriver protected function creatingPaymentMethod($paymentMethod) { $paymentMethod->source_reference = $this->purchaseResponse->getMandateId(); - $paymentMethod->payment_type_id = PAYMENT_TYPE_ACH; + $paymentMethod->payment_type_id = PAYMENT_TYPE_GOCARDLESS; $paymentMethod->status = PAYMENT_METHOD_STATUS_VERIFIED; return $paymentMethod;