Setting Up the Payment Interface
To create a Payment UI:
window.addEventListener('load', function () {
neodeos.init('sandbox', '<public key>')
.addPaymentUI('<container id>', '<amount>', '<3-letter currency code>', 'options');
});
The options object supports the following optional properties:
paypalEnablePayIn4: boolean flag to activate PayPal's "Pay in 4" installment option (trueorfalse)paypalButtonStyle: defines the visual style of the PayPal button; accepts predefined color values such asgold,blue,silver,white, orblackcardProviderId: specifies the provider ID to be used explicitly for card transactionspaypalProviderId: designates the PayPal provider ID to route the transaction through a specific configurationthreeDSEmail: email address passed for identity verification during 3D Secure authenticationredirectUrl: URL to which the user is redirected after the payment flow completesvault: indicates whether to store the card information in the NeoDeos vault (trueto store, defaults tofalse)