Use Case
Conversational Commerce
Sell products inside chat channels by orchestrating flows, checkout sessions, and payment confirmations.
Problem
Businesses want to complete purchases in messaging channels without redirecting customers to complex payment flows.
Architecture
Customer
Chat Platform
Orangepill Flow
Checkout Session
Payment Rail
Fulfillment
Implementation
- 1Trigger a flow from a chat message or agent event.
- 2Create a checkout session for the selected product.
- 3Send payment options back to chat (link, QR, or deep link).
- 4Confirm payment via webhook and fulfill the order.
Checkout session
const session = await orangepill.checkout.sessions.create({
amount: 50000,
currency: "COP"
})Production considerations
- Use idempotency keys for repeated chat triggers.
- Enable payment retries and rail failover for higher conversion.
- Verify webhooks before confirming fulfillment.
- Log conversation state alongside payment attempts.
Start building with Orangepill
Get access to programmable financial infrastructure and launch faster.