Overview
- Create a virtual card session
- Add a window event listener with type
messageto the checkout page - Open the card session
dashboard_urlusing the mode provided in the create card session request - Sezzle will post a message to the listener when the user has completed the card session
- Verify message
event.dataexists - Verify
event.data.szl_source=v_card - Verify
event.data.cardandevent.data.holderboth exist- If they exist
- Use card and holder data to submit the order by credit card
- If they don’t exist
- The user did not provide virtual card data
- If they exist