Paypal Checkout - Pay later 4x message doesnt show with multiple purchase_units

jdevos
Contributor
Contributor

Hello,

 

I create an order with api Rest orders for Paypal Checkout integration.

 

With 1 product its OK, the message in the popin show the option Pay 4x, but with 2 products or more (multiple purchase_units), the option doesnt show.

 

Its normal ? how to solve this ?

 

Thank you

Login to Me Too
2 REPLIES 2

Kavyar
Moderator
Moderator

Good day @jdevos 

 

Thank you for posting to the PayPal community.

 

After review, It has come to our attention that there may be an issue with the code. To ensure its proper functionality across all products, I would suggest to please contact your website developer or the support of the third-party platform (eCommerce) to cross check the integration code.

 

For further assistance, please refer to the detailed guide links provided below:

 

https://developer.paypal.com/docs/checkout/pay-later/fr/

 

https://developer.paypal.com/docs/checkout/pay-later/fr/integrate/message-placement/

 

If you are still experiencing issues, please create an MTS ticket via the following URL  - https://www.paypal-support.com/s/?language=en_US  .Please ensure that you provide detailed information and error details when submitting the ticket.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

jdevos
Contributor
Contributor

Hello,

 

I am the developer, the site uses multishipping, so there are 2 purchase_units each with the data, the product, the address, the amounts.

 

With these 2 purchase_units, the 4x paypal is never displayed, if I have a 1 purchase_units the 4x it's OK.

 

I would say that multishipping poses a problem, but currently with PaypalExpress i have 4x even with multishipping.

 

Thank you for your help (The MTS ticket is created)

 

[
'intent' => 'CAPTURE',
'payer' => [
'email_address' => 'email_address',
],
'purchase_units' => [
0 => [
'reference_id' => 'xxxxxxx',
'amount' => [
'currency_code' => 'xxx',
'value' => xxxx,
'breakdown' => [
'item_total' => [
'currency_code' => xxxxx,
'value' => xxxx,
],
]
],
'items' => [
0 => [
'name' => 'xxxx',
'quantity' => 1,
'unit_amount' => [
'currency_code' => 'xxxx',
'value' => xxxx,
],
]
],
'shipping' => [
'id' => 'xxxxx',
'label' => 'xxxxxxxxxx',
'amount' => xxx,
'address' => [
'type' => 'xxxx',
'address_line_1' => 'xxxx',
'address_line_2' => 'xxxx',
'postal_code' => 'xxxx',
'admin_area_2' => 'xxxx',
'country_code' => 'xxxx',
],
'name' => [
'full_name' => 'xxxx',
],
],
1 => [
'reference_id' => 'xxxxxxx',
'amount' => [
'currency_code' => 'xxx',
'value' => xxxx,
'breakdown' => [
'item_total' => [
'currency_code' => xxxxx,
'value' => xxxx,
],
]
],
'items' => [
0 => [
'name' => 'xxxx',
'quantity' => 1,
'unit_amount' => [
'currency_code' => 'xxxx',
'value' => xxxx,
],
],
'shipping' => [
'id' => 'xxxxx',
'label' => 'xxxxxxxxxx',
'amount' => xxx,
'address' => [
'type' => 'xxxx',
'address_line_1' => 'xxxx',
'address_line_2' => 'xxxx',
'postal_code' => 'xxxx',
'admin_area_2' => 'xxxx',
'country_code' => 'xxxx',
],
'name' => [
'full_name' => 'xxxx',
],
]
],
'payment_source' => [
'paypal' => [
'experience_context' => [
'shipping_preference' => 'SET_PROVIDED_ADDRESS',
],
]
]
],

 

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.