Paypal Advanced card payments

This commit is contained in:
David Bomba 2024-05-02 14:27:37 +10:00
parent d387bed9c8
commit 35fd124190
2 changed files with 3 additions and 8 deletions

View File

@ -170,9 +170,9 @@ class PayPalRestPaymentDriver extends BaseDriver
$data['currency'] = $this->client->currency()->code;
return render('gateways.paypal.ppcp.card', $data);
// return render('gateways.paypal.ppcp.card', $data);
// return render('gateways.paypal.pay', $data);
return render('gateways.paypal.pay', $data);
}
@ -400,7 +400,7 @@ return render('gateways.paypal.ppcp.card', $data);
$data['token'] = $token;
$data['payment_method_id'] = GatewayType::PAYPAL_ADVANCED_CARDS;
$data['payment_meta'] = $payment_meta;
$data['payment_method_id'] = GatewayType::CREDIT_CARD;
// $data['payment_method_id'] = GatewayType::CREDIT_CARD;
$additional['gateway_customer_reference'] = $gateway_customer_reference;

View File

@ -208,11 +208,6 @@ class InstantPayment
$credit_totals = in_array($first_invoice->client->getSetting('use_credits_payment'), ['always', 'option']) ? $first_invoice->client->service()->getCreditBalance() : 0;
$starting_invoice_amount = $first_invoice->balance;
/* Schedule a job to check the gateway fees for this invoice*/
// if (Ninja::isHosted()) {
// CheckGatewayFee::dispatch($first_invoice->id, $client->company->db)->delay(800);
// }
if ($gateway) {
$first_invoice->service()->addGatewayFee($gateway, $payment_method_id, $invoice_totals)->save();
}