sequenceDiagram
Customer->>Your Front-End: Customer enters the checkout
Your Front-End->>Your Front-End: Display the BLIK code field
Note over Customer,Your Front-End: Customer enters the BLIK code
Your Front-End->>Your Front-End: Validate and sanitize the code
Your Front-End->>Your Back-End: Send the code to your back-end
Your Back-End->>Montonio Stargate API: Create the Montonio order (with the BLIK code)
Montonio Stargate API-->>Your Front-End: Response
Your Front-End->>Your Front-End: Show the confirmation/loading pop-up
loop Every 1.5 seconds
Your Front-End-->>Montonio Stargate API: Poll the status of the payment intent
end
Note left of Your Front-End: Customer confirms payment in the BLIK app
Montonio Stargate API-->>Your Front-End: Success response with returnUrl and orderToken
Your Front-End->>Your Front-End: Close the confirmation pop-up
Your Front-End->>Customer: Send user to the returnUrl