API and E-Commerce Integration Pattern
The API + E-Commerce Integration pattern combines back-end orchestration with Capricorn-hosted payment screens for selected customer interactions.
When to use this pattern
- You want Capricorn to host part of the payment experience.
- You still need API-driven orchestration for session creation, status tracking, or downstream workflows.
- Your delivery team wants a lighter PCI-related front-end footprint, subject to Capricorn confirmation.
:::note Diagram placeholder [TO BE CONFIRMED - insert API + E-Commerce Integration flow diagram] showing merchant application, Capricorn API session creation, browser hand-off, and response handling. :::
Illustrative flow summary
| Phase | Illustrative action | Placeholder dependency |
|---|---|---|
| Session setup | Create a payment or checkout session via API | [TO BE CONFIRMED] |
| Browser hand-off | Redirect or embed the hosted page | [TO BE CONFIRMED - E-Commerce Integration URL pattern] |
| Completion | Receive callback, redirect, or status query result | [TO BE CONFIRMED - return model] |
| Reconciliation | Verify final status using API or event updates | [TO BE CONFIRMED] |
POST /illustrative/payment-session
Authorization: ******
Content-Type: application/json