Integration Flow Summary
- Load Script – Inject the SDK script and wait for
onRevupSDKLoaded - Create Order – Generate an order ID from your backend
- Configure – Build configuration with
apiKey,merchantDomain, andorderId - Instantiate –
const revup = new Revup(config) - Set Listener –
revup.onRevupMessage(handler) - Initialize –
await revup.init({ containerId: 'revup-container', ... }) - Handle Events – Process payment results in your event handler
- Cleanup – Remove listener and clear container when done