CoDi via Widget
Integrate CoDi with the DEUNA Payment Widget, test the customer flow, and verify the final payment status.
On this page
Prerequisites#
Before implementing CoDi payments, ensure you have:
- Enabled STP CODI in the DEUNA Admin Panel.
- An generated order token.
- Integrated the DEUNA SDK in your project.
- Reviewed the Payment Widget documentation for your platform.
Payment Widget configuration#
JavaScript
DeunaSDK.initPaymentWidget({
orderToken: '<YOUR_GENERATED_ORDER_TOKEN>',
paymentMethods: [
{
paymentMethod: 'bank_transfer',
processors: ['stp_codi'],
},
],
callbacks: { ... },
});