This commit is contained in:
David Bomba 2023-10-16 16:29:34 +11:00
parent 6ca1a36ef4
commit 15941b8273
2 changed files with 3 additions and 3 deletions

View File

@ -159,9 +159,9 @@ class PayPalPPCPPaymentDriver extends BaseDriver
$data['client_id'] = $this->company_gateway->getConfigField('clientId');
$data['token'] = $this->getClientToken();
$data['order_id'] = $this->createOrder($data);
$data['funding_options'] = $this->paypal_payment_method;
$data['funding_source'] = $this->paypal_payment_method;
return render('gateways.paypal.credit_card.pay', $data);
return render('gateways.paypal.ppcp.pay', $data);
}

View File

@ -36,7 +36,7 @@
paypal.Buttons({
env: "{{ $gateway->company_gateway->getConfigField('testMode') ? 'sandbox' : 'production' }}",
fundingSource: "card",
fundingSource: "{{ $funding_source }}",
client: {
@if($gateway->company_gateway->getConfigField('testMode'))
sandbox: "{{ $gateway->company_gateway->getConfigField('clientId') }}"