Palbase Payments · API
/payments/connectSubmit credential connect form
With open=1 and a link's grant: the one-time page a key is handed over on, styled like Studio and asking for what its link's provider takes alone: a Stripe link, the restricted key (its mode read from the key); an iyzico link, the API and secret keys and the mode; the channel's name when the link names none. The link is read, not used; one used, expired or not one answers 410 with a page that says so. Without it: validates the one-time connect grant, probes provider credentials, seals them with the project's data key, and activates the channel. The grant is read from the post's body alone. The page's post is answered with a page: the channel connected, its provider and mode, or why nothing was — with its code, and a button to try again while the link lasts. A program that sends Accept: application/json is answered the channel (or the error) as JSON.
Called by .
curl -X POST "https://<your-ref>.palbase.studio/payments/connect" \
-H "content-type: application/x-www-form-urlencoded" \
--data-binary @fileResponses
200Channel connected: a page, or the channel to a JSON client
403`invalid_grant`: the link is used, expired or not one (a page, or JSON to a program that asks)
410With open=1: the link is used, expired or not one (a page)
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation ConnectChannelSubmit of payments's contract.