Updates to allow pink auto billing

This commit is contained in:
David Bomba 2024-09-04 12:26:35 +10:00
parent e1ec2928a9
commit 9b2d745bcf

View File

@ -82,6 +82,9 @@ class Charge
if ($cgt->gateway_type_id == GatewayType::BACS) { if ($cgt->gateway_type_id == GatewayType::BACS) {
$data['payment_method_types'] = ['bacs_debit']; $data['payment_method_types'] = ['bacs_debit'];
} }
if($cgt->gateway_type_id == GatewayType::CREDIT_CARD){
$data['payment_method_types'] = ["card","link"];
}
/* Should improve token billing with client not present */ /* Should improve token billing with client not present */
if (!auth()->guard('contact')->check()) { if (!auth()->guard('contact')->check()) {