Fixes for paypal ppcp

This commit is contained in:
David Bomba 2023-10-29 20:33:26 +11:00
parent 195d96c7be
commit e7ffc00306
3 changed files with 4 additions and 5 deletions

View File

@ -206,7 +206,8 @@ class PayPalPPCPPaymentDriver extends BaseDriver
$data['order_id'] = $this->createOrder($data); $data['order_id'] = $this->createOrder($data);
$data['funding_source'] = $this->paypal_payment_method; $data['funding_source'] = $this->paypal_payment_method;
$data['gateway_type_id'] = $this->gateway_type_id; $data['gateway_type_id'] = $this->gateway_type_id;
$data['merchantId'] = $this->company_gateway->getConfigField('merchantId');
return render('gateways.paypal.ppcp.pay', $data); return render('gateways.paypal.ppcp.pay', $data);
} }

View File

@ -287,9 +287,7 @@ class EventServiceProvider extends ServiceProvider
* *
*/ */
protected $listen = [ protected $listen = [
RequestSending::class => [
LogRequestSending::class,
],
// 'Illuminate\Http\Client\Events\ResponseReceived' => [ // 'Illuminate\Http\Client\Events\ResponseReceived' => [
// 'App\Listeners\LogResponseReceived', // 'App\Listeners\LogResponseReceived',
// ], // ],

View File

@ -30,7 +30,7 @@
@push('footer') @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> <div id="paypal-button-container"></div>
<script> <script>