This is the endpoint where the card information will be shared and a session is initiated. This request will be sent from the client side directly in the checkout and will not pass through ZidPay backend nor any data will be saved.
Request
Path Params
ProviderUrl
string
required
The base URL of the payment provider’s API. ZidPay will use this URL to send requests such as token generation, payment execution, refunds, and Apple Pay registration. This should point to the root domain or environment-specific endpoint provided by the payment provider.
Example:
https://api.paymentprovider.com
Body Params application/json
Request body for initiating a direct payment session with card details.
publishableApiKey
string
required
Merchant's public API key provided by the payment provider.
Example:
pk_test_abc123xyz
providerMerchantId
string
required
Merchant ID on the provider's side.
Example:
merchant_456789
name
string
required
Cardholder's full name as printed on the card.
Example:
John Doe
number
string
required
Credit or debit card number.
Example:
4111111111111111
cvc
string
required
Card Verification Code (CVC/CVV) from the back of the card.