mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:34:29 -04:00
Fixes for paypal ppcp
This commit is contained in:
parent
195d96c7be
commit
e7ffc00306
@ -206,7 +206,8 @@ class PayPalPPCPPaymentDriver extends BaseDriver
|
||||
$data['order_id'] = $this->createOrder($data);
|
||||
$data['funding_source'] = $this->paypal_payment_method;
|
||||
$data['gateway_type_id'] = $this->gateway_type_id;
|
||||
|
||||
$data['merchantId'] = $this->company_gateway->getConfigField('merchantId');
|
||||
|
||||
return render('gateways.paypal.ppcp.pay', $data);
|
||||
|
||||
}
|
||||
|
@ -287,9 +287,7 @@ class EventServiceProvider extends ServiceProvider
|
||||
*
|
||||
*/
|
||||
protected $listen = [
|
||||
RequestSending::class => [
|
||||
LogRequestSending::class,
|
||||
],
|
||||
|
||||
// 'Illuminate\Http\Client\Events\ResponseReceived' => [
|
||||
// 'App\Listeners\LogResponseReceived',
|
||||
// ],
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
@push('footer')
|
||||
|
||||
<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 !!}&merchant-id={!! $merchantId !!}&components=buttons,funding-eligibility&intent=capture" data-client-token="{!! $token !!}" data-partner-attribution-id="invoiceninja_SP_PPCP"></script>
|
||||
<div id="paypal-button-container"></div>
|
||||
<script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user