Skip to main content

Integrating PayPal as a Payment Option

You can enable this by calling addPaypal():

window.addEventListener('load', function () {
neodeos.init('sandbox', '<public key>')
.addPaypal('iframeContainer', '<amount>', '<3-letters currency code>', '<PayPal Provider Id (optional)>', 'options (optional)');
});

The options object supports the following optional properties:

  • hideShipping: suppresses the display of the shipping address on the PayPal checkout page
  • paypalButtonStyle: sets the PayPal button color theme; accepted values are gold (default),blue, silver, white, or black
  • paypalEnablePayIn4: boolean flag to activate the PayPal "Pay in 4" installment feature ( true or false)
  • transfer: account: the merchant account that should receive the transaction funds amount: the full monetary value of the order to be transferred