Direct Payment
Initiate session Request
Overview
{ProviderUrl}/tokens
Request Model
Definition:
Property | Type | Description |
---|---|---|
publishableApiKey | string | Merchant public key |
providerMerchantId | string | Merchant ID on provider side |
name | string | Name on card |
number | string | Number on card |
cvc | string | CVC on card |
month | string | Expiry month on card |
year | string | Expiry year on card |
Success Response Model
Property | Type | Description |
---|---|---|
token | string | |
brand | string | Card type, types: visa master mada amex |
funding | string | Types: Credit debit |
country | string | Card country |
network | string | Network that the payment is going to be processed on, Types: visa master mada amex |
lastFour | string | Last four digits |
Failed Response Model
Property | Type | Description |
---|---|---|
message | string | |
errors | List< string > |