public

POST /v1/pay/partner/{token}

Pay a partner's domain order on our checkout. Unauthenticated.

Све public крајње тачке

Сва документација за програмере →

Аутентификација

Ова крајња тачка је јавна. Не захтева никакве акредитиве нити организацију — то је оно што читају наш сопствени маркетиншки сајт и машине за одговоре са вештачком интелигенцијом.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X POST https://api.zinndigital.com/v1/pay/partner/{token} \
  -H "Content-Type: application/json" \
  -d '{  }'

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

With an empty body or {"rail": …}: the chosen rail is opened. Card gives a card-setup client_token (status: setup_required, nothing charged); PayPal gives a paypal_order_id for the wallet overlay (status: paypal_approval_required, nothing charged); crypto gives a redirect_url to the vendor invoice. With setup_intent_id, after the card form is confirmed: the card is re-read from the gateway, refused unless it belongs to this order's organization, recorded, and charged. With paypal_order_id, after the buyer approved: PayPal is asked to capture — the browser is never believed. When the order is paid, return_url is the partner's URL to send the browser to. ⛔ Nothing here decides an order is paid — the capture and the gateway webhook do, as for every order. A refusal the payer can act on is a 409 carrying its sentence.

Параметри

НазивТипОбавезноШта је ово
token (path)stringДа—

Тело захтева

НазивТипОбавезноШта је ово
railstringНеThe rail the payer chose, from the rails the GET offered. Omitted means the default. A rail this order cannot settle on is refused with a sentence — it is never silently…
setup_intent_idstringНе—
paypal_order_idstringНе—

Одговор

НазивТипОбавезноШта је ово
statusstringДа—
settledbooleanДа—
client_tokenstringДаA card-form client secret for the browser SDK, when one is needed.
setup_intent_idstringДа—
redirect_urlstringДаWhere to send the browser to approve the payment on a rail that finishes off-site — a crypto invoice today. Empty on the card and PayPal rails, both of which finish on this page.
action_kindstringДа—
paypal_order_idstringДаThe PayPal order the browser's SDK attaches to, on the PayPal rail. Minted by us — an id a client invents is refused by the gateway, not honoured.
railstringДаWhich rail this step belongs to (stripe, paypal, nowpayments).
return_urlstringДаThe partner URL to send the browser to

Грешке које ова крајња тачка може вратити

404 · 409 · 422 · 429