Dear developers,
we are using the paypal JS-SDK to trigger the paypal MessagesModal without showing the rendered paypal messages.
However, I am facing the following problem:
As stated in the Docs found at https://developer.paypal.com/docs/checkout/pay-later/de/, "Pay in 30" should only be applied and available if the Product's price is below 1000€.
On our website, if a user clicks a button to check paypal options, we dynamically include the JS SDK and initialize and show the paypal.MessagesModal with the needed amount and currency:
modal = paypal.MessagesModal({})
modal.updateProps({
amount: amount,
currency: "EUR"
})
modal.show()
If the user keeps hiding and opening the modal, the content is changing randomly between "Paypal Ratenzahlung" and "Pay in 30" for all products and prices, be it 20€ or 4500€.
What can I do to only show the "Pay in 30", if the Product's price is below 1000€?