Offline Refund elements
Learn how to use the offline refund element.
Creating an Offline Refund element
var offlineOptions = {
classes: {
base: "DRElement",
complete: "offline-refund-complete",
invalid: "offline-refund-invalid"
},
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',
},
}
},
refundToken: 'fb19fceb-a5e7-454d-af1a-017b7bd73d5b'
};
let offlineRefund = digitalriverpayments.createElement('offlinerefund', offlineOptions);Offline Refund element functions
offlineRefund.mount();
offlineRefund.unmount();
offlineRefund.destroy();
Offline Refund element events - offlineRefund.on('event', handler);
Event
Triggered When
Ready
Change
Key
Value Description
Last updated