Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Payments (demo)

4 routes. Paths are relative to https://api.intersink.com/v1.

All groups

Demo payments status + test cards (404 when off)

GET/payments/demo

Public: no sign-in needed.

Response

200. The payload in data is not described in the spec yet.

Charge a DEMO payment with a test card (4242… success, 4000…0002 decline, 4000002500003155 3-D Secure)

POST/payments/demo/charge

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
Idempotency-Keystring, headerOptional client-generated key (8-128 chars, [A-Za-z0-9_-]). A retry with the same key and body replays the first response (Idempotent-Replayed: true); 409 while the first is in flight; 422 if the body differs.

Request body application/json

FieldTypeDescription
payment_idrequiredstringpayments.id returned by POST /payments/create. At most 64 characters.
card_numberrequiredstring4242424242424242 succeeds, 4000000000000002 declines, 4000002500003155 requires 3-D Secure.

Response

200. The payload in data is not described in the spec yet.

Hosted DEMO checkout page (HTML; no real money)

GET/payments/demo/checkout/{paymentId}

Public: no sign-in needed.

Parameters

NameTypeDescription
paymentIdrequiredstring, path
trequiredstring, query
challengerequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Complete a DEMO checkout (form post). Settles via the Stripe webhook path, then redirects (303) to return_url or shows a receipt

POST/payments/demo/checkout/{paymentId}/complete

Public: no sign-in needed.

Parameters

NameTypeDescription
paymentIdrequiredstring, path

Request body application/json

FieldTypeDescription
trequiredstringCheckout capability token (the t from checkout_url). At most 128 characters.
outcomerequiredstringOne of: "success", "fail", "challenge", "challenge_success", "challenge_fail".

Response

200. The payload in data is not described in the spec yet.