mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Paypal Advanced card payments
This commit is contained in:
parent
d387bed9c8
commit
35fd124190
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user