Tap authorize payment

Authorize a payment through the customer's payment gateway (currently Tap). Saves the submitted customer details, then creates an authorization on the gateway. When 3D Secure applies, the response includes a threeDSecure_url to redirect the customer to. The customer is taken from the JWT.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Authorize a payment through the customer's payment gateway (currently Tap). The request saves the submitted customer details, then creates an authorization on the gateway. When 3D Secure applies, the response includes a threeDSecure_url — redirect the customer there to complete authentication. The customer is taken from the JWT.

Example:

curl --request POST   --url 'https://www.pelcro.com/api/v1/sdk/payment/tap/authorize?site_id=1232'   --header 'Authorization: Bearer <JWT>'   --header 'Content-Type: application/json'   --data '{
    "first_name": "Jane",
    "last_name": "Doe",
    "phone": "15555550123",
    "currency": "USD",
    "funding": "CREDIT",
    "tap_token": "tok_xxxxxxxxxxxx",
    "redirect_url": "https://example.com/payment/return"
  }'

Conditional Requirements

  • first_name, last_name, phone, currency, and funding (DEBIT or CREDIT) are required.
  • redirect_url, tap_token, and amount are optional; amount is in the smallest currency unit (e.g. cents).
  • Requires an active gateway on the account; only Tap implements authorization today.
Path Params
string
required

Payment gateway identifier. Currently only tap is supported.

Query Params
int32
required

The unique identifier of the site associated with your account.

Body Params
string
required

The customer's first name.

string
required

The customer's last name.

string
required

Customer phone number (5–20 digits).

string
required

The three-letter ISO currency code for the payment.

string
enum
required

The card funding type, either DEBIT or CREDIT.

Allowed:
uri | null

URL to return to after 3D Secure.

string | null

Gateway card token.

integer

Amount in the smallest currency unit (e.g. cents).

Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json