mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update paypal for fraudnet
This commit is contained in:
parent
3e79df8809
commit
1d754758ee
@ -173,6 +173,13 @@ class PayPalRestPaymentDriver extends PayPalBasePaymentDriver
|
|||||||
})->implode("\n");
|
})->implode("\n");
|
||||||
|
|
||||||
$order = [
|
$order = [
|
||||||
|
"payer" => [
|
||||||
|
"name" => [
|
||||||
|
"given_name" => $this->client->present()->first_name(),
|
||||||
|
"surname" => $this->client->present()->last_name()
|
||||||
|
],
|
||||||
|
"email_address" => $this->client->present()->email(),
|
||||||
|
],
|
||||||
"intent" => "CAPTURE",
|
"intent" => "CAPTURE",
|
||||||
"payment_source" => $this->getPaymentSource(),
|
"payment_source" => $this->getPaymentSource(),
|
||||||
"purchase_units" => [
|
"purchase_units" => [
|
||||||
|
@ -14,10 +14,12 @@
|
|||||||
|
|
||||||
@endphp
|
@endphp
|
||||||
@section('gateway_head')
|
@section('gateway_head')
|
||||||
<!-- <meta http-equiv="Content-Security-Policy" content="
|
<meta http-equiv="Content-Security-Policy" content="
|
||||||
img-src 'self' https://c.paypal.com https://b.stats.paypal.com;
|
frame-src 'self' https://c.paypal.com https://www.sandbox.paypal.com https://www.paypal.com;
|
||||||
frame-src 'self' https://c.paypal.com;
|
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://c.paypal.com https://www.paypalobjects.com https://www.paypal.com https://www.sandbox.paypal.com/;
|
||||||
script-src 'self' https://c.paypal.com;"> -->
|
img-src * data: 'self';
|
||||||
|
style-src 'self' 'unsafe-inline';"
|
||||||
|
>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('gateway_content')
|
@section('gateway_content')
|
||||||
@ -86,7 +88,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- <script type="text/javascript" src="https://c.paypal.com/da/r/fb.js"></script> -->
|
<script type="text/javascript" src="https://c.paypal.com/da/r/fb.js"></script>
|
||||||
|
|
||||||
@if(isset($merchantId))
|
@if(isset($merchantId))
|
||||||
<script src="https://www.paypal.com/sdk/js?client-id={!! $client_id !!}&merchant-id={!! $merchantId !!}&components=card-fields" data-partner-attribution-id="invoiceninja_SP_PPCP"></script>
|
<script src="https://www.paypal.com/sdk/js?client-id={!! $client_id !!}&merchant-id={!! $merchantId !!}&components=card-fields" data-partner-attribution-id="invoiceninja_SP_PPCP"></script>
|
||||||
@ -185,8 +187,8 @@
|
|||||||
// Render each field after checking for eligibility
|
// Render each field after checking for eligibility
|
||||||
if (cardField.isEligible()) {
|
if (cardField.isEligible()) {
|
||||||
|
|
||||||
const nameField = cardField.NameField();
|
// const nameField = cardField.NameField();
|
||||||
nameField.render("#card-name-field-container");
|
// nameField.render("#card-name-field-container");
|
||||||
|
|
||||||
const numberField = cardField.NumberField({
|
const numberField = cardField.NumberField({
|
||||||
inputEvents: {
|
inputEvents: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user