Working on payments

This commit is contained in:
David Bomba 2023-10-16 17:00:37 +11:00
parent 92e3f05e8b
commit 1f05c10cea
2 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,8 @@ class PayPalPPCPPaymentDriver extends BaseDriver
$response = json_decode($request['gateway_response'], true);
nlog($response);
if($response['status'] == 'COMPLETED' && isset($response['purchase_units'])) {
$data = [

View File

@ -32,6 +32,8 @@
<script src="https://www.paypal.com/sdk/js?client-id={!! $client_id !!}&components=buttons,funding-eligibility&intent=capture" data-client-token="{!! $token !!}"></script>
<div id="paypal-button-container"></div>
<script>
//&buyer-country=US&currency=USD&enable-funding=venmo
const fundingSource = "{!! $funding_source !!}";
const testMode = {{ $gateway->company_gateway->getConfigField('testMode') }};
const clientId = "{{ $gateway->company_gateway->getConfigField('clientId') }}";