RegisterPlacements
Definition
BreadPayments.registerPlacements(placementConfigs: UnifiedPlacementConfigCompat[]): void;
Example
const setupConfig = {
loyaltyID: “xxxxxx”, //optional
storeNumber: “1234567”,
env: 'STAGE', // STAGE | PROD
};
const placementConfigs = [{
financingType: "card",
locationType: "checkout",
domID: "placement1",
order: { // required for price based messaging
totalPrice: {
value: 110000,
currency: 'USD'
}
}
}];
window.BreadPayments.setup(setupConfig);
window.BreadPayments.registerPlacements(placementConfigs);
Related
Updated almost 2 years ago