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.
This commit is contained in:
Dan Holliday 2020-04-07 15:47:49 +01:00
parent b6e925381c
commit 2ef88fb859

View File

@ -86,7 +86,7 @@ class GoCardlessV2RedirectPaymentDriver extends BasePaymentDriver
protected function creatingPaymentMethod($paymentMethod) protected function creatingPaymentMethod($paymentMethod)
{ {
$paymentMethod->source_reference = $this->purchaseResponse->getMandateId(); $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; $paymentMethod->status = PAYMENT_METHOD_STATUS_VERIFIED;
return $paymentMethod; return $paymentMethod;