mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 21:24: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['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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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',
|
||||||
// ],
|
// ],
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user