API ReferenceIntegrationsKnowledge Base

Sample Codes - Configurability of Payment Methods

Show Ola Money Separately on Checkout🔗

Copyconfig: { display: { blocks: { banks: { name: 'Methods with Offers', instruments: [ { method: 'wallet', wallets: ['olamoney'] }] }, }, sequence: ['block.banks'], preferences: { show_default_blocks: true, }, }, }, };
show ola money on checkout

Show Amazon Pay Separately on Checkout🔗

Copyconfig: { display: { blocks: { banks: { name: 'Methods with Offers', instruments: [ { method: 'wallet', wallets: ['amazonpay'] }] }, }, sequence: ['block.banks'], preferences: { show_default_blocks: true, }, }, }, };

Show Most Used Methods🔗

Copyconfig: { display: { blocks: { banks: { name: 'Methods with Offers', instruments: [ { method: 'wallet', wallets: ['amazonpay'] }, { method: 'upi' }, ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: true, }, }, }, };

Show Instruments of a Certain Bank Only🔗

Copyconfig: { display: { blocks: { banks: { name: 'Pay using HDFC banks', instruments: [ { method: 'netbanking', banks: ['HDFC'], }, { method: 'card', issuers: ['HDFC'], }, { method: 'wallet', wallets:['payzapp'] } ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: false, }, }, }, };
show instruments of a certain bank only

Highlight Instruments of a Certain Bank🔗

Copyconfig: { display: { blocks: { banks: { name: 'Pay using HDFC banks', instruments: [ { method: 'netbanking', banks: ['HDFC'], }, { method: 'card', issuers: ['HDFC'], }, { method: 'wallet', wallets:['payzapp'] } ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: true, }, }, }, };
highlight instruments of a certain bank

Reorder Payment Methods🔗

Copyconfig: { display: { blocks: { banks: { name: 'All payment methods', instruments: [ { method: 'upi' }, { method: 'card' }, { method: 'wallet' }, { method: 'netbanking' }, { method: 'emi' } ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: false, }, }, }, };
reorder payment methods

Remove a Method from Checkout🔗

Copyconfig: { display: { hide: [ { method: 'emi' } ], preferences: { show_default_blocks: true, }, }, }, };
remove a method from checkout

Show Only a Certain Payment Method on Checkout🔗

Copyconfig: { display: { blocks: { banks: { name: 'Pay via UPI', instruments: [ { method: 'upi' } ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: false, }, }, }, };
show only UPI on checkout
Copyconfig: { display: { blocks: { banks: { name: 'Pay via Card', instruments: [ { method: 'card' } ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: false, }, }, }, };
show only card on checkout
×