First journey: accept a test pay-in
Result: a completed simulated pay-in, confirmed by the platform’s own payment status.
Before you start
Section titled “Before you start”You need a sandbox tenant prepared by Orangepill with:
- a Dummy Stable card pay-in provider instance;
- a payment product: this journey uses the built-in
cardproduct key; - a credential that can call the payments API.
1. Create the intent
Section titled “1. Create the intent”POST /v4/payment-intentsAuthorization: Bearer <credential>Content-Type: application/json
{ "amount": 50000, "currency": "COP", "productKey": "card", "idempotencyKey": "order-1001"}If you send the same idempotencyKey again, you get the same intent back instead of a new one.
2. Read the payment options
Section titled “2. Read the payment options”GET /v4/payment-intents/{id}/optionsPick a methodKey from the response.
3. Execute it
Section titled “3. Execute it”POST /v4/payment-intents/{id}/execute
{ "selection": { "methodKey": "<methodKey>" }}4. Confirm the outcome
Section titled “4. Confirm the outcome”GET /v4/payment-intents/{id}Treat the status returned here as the source of truth. A redirect, or a message from your agent, does not confirm a payment.
Acceptance checks for this guide
Section titled “Acceptance checks for this guide”| Case | Expected | Local run (main branch, Dummy Stable) |
|---|---|---|
| Happy path with Dummy Stable | The intent reaches a successful terminal state | Passed: processing, then completed about 5 s later after the Dummy webhook |
Same idempotencyKey sent twice |
The same intent id comes back | Passed |
| Execute an intent that is already processing | 409 INTENT_ALREADY_PROCESSING |
Passed |
| Failure injected with Dummy Chaos | The intent reaches failed and is not executed again |
Not run: Chaos failures are random |
Known limitations
Section titled “Known limitations”- Intents have no “unknown outcome” state. If execution is interrupted, an intent can stay
processing, and retrying returns 409. Contact support instead of creating a duplicate intent. - Provider failover applies to payouts and payment requests, not to payment intents.
- Reconciliation views are operator tools and are not part of this journey.
- MCP agents cannot execute payments. Run this journey over REST.
Agent prompt
Section titled “Agent prompt”Using only REST endpoints that exist in the Orangepill API reference, create a payment intent for 50000 COP with my product key and idempotency key
order-1001, list its options, and show me the plan before executing. After I approve, execute it with the method I choose, then report the intent’s final status exactly asGET /v4/payment-intents/{id}returns it.