Online Banking elements
Learn how to use the Online Banking elements.
Creating an Online Banking element
var onlineBankingOptions = {
classes: {
base: "DRElement",
complete: "onlineBanking-complete",
empty: "onlineBanking-empty",
focus: "onlineBanking-focus"
},
style: {
base: {
color: '#495057',
height: '35px',
fontSize: '1rem',
fontFamily: 'apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif',
// fontWeight: 'lighter',
':hover': {
color: '#ccc',
},
'::placeholder': {
color: '#495057'
}
},
focus: {
':hover': {
color: '#495057',
},
},
empty: {
':hover': {
color: '#495057',
},
},
complete: {
':hover': {
color: '#495057',
},
}
},
onlineBanking: {
currency: "USD",
country: "US"
}
};
onlineBanking = digitalriverpayments.createElement('onlinebanking', onlineBankingOptions);Online Banking element functions
onlineBanking.mount();
onlineBanking.unmount();
onlineBanking.destroy();
onlineBanking.update();
Online Banking element events — onlineBanking.on('event', handler);
Event
Triggered When
Ready
Value
Key
Focus
Blur
Change
Key
Value Description
Last updated