mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on payments
This commit is contained in:
parent
92e3f05e8b
commit
1f05c10cea
@ -217,6 +217,8 @@ class PayPalPPCPPaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
$response = json_decode($request['gateway_response'], true);
|
$response = json_decode($request['gateway_response'], true);
|
||||||
|
|
||||||
|
nlog($response);
|
||||||
|
|
||||||
if($response['status'] == 'COMPLETED' && isset($response['purchase_units'])) {
|
if($response['status'] == 'COMPLETED' && isset($response['purchase_units'])) {
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
|
@ -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>
|
<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>
|
<div id="paypal-button-container"></div>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
//&buyer-country=US¤cy=USD&enable-funding=venmo
|
||||||
const fundingSource = "{!! $funding_source !!}";
|
const fundingSource = "{!! $funding_source !!}";
|
||||||
const testMode = {{ $gateway->company_gateway->getConfigField('testMode') }};
|
const testMode = {{ $gateway->company_gateway->getConfigField('testMode') }};
|
||||||
const clientId = "{{ $gateway->company_gateway->getConfigField('clientId') }}";
|
const clientId = "{{ $gateway->company_gateway->getConfigField('clientId') }}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user