Skip to content

First journey: accept a test pay-in

Result: a completed simulated pay-in, confirmed by the platform’s own payment status.

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 card product key;
  • a credential that can call the payments API.
POST /v4/payment-intents
Authorization: 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.

GET /v4/payment-intents/{id}/options

Pick a methodKey from the response.

POST /v4/payment-intents/{id}/execute
{
"selection": { "methodKey": "<methodKey>" }
}
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.

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
  • 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.

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 as GET /v4/payment-intents/{id} returns it.