Pay by Credit Card
API for direct payment by credit card number without using payment page.
Sending credit card information using API requires your server to be PCI compliant, if you don't have PCI certification - please see our documentation of Credit Card iFrame
API Interface
Pay by credit card
POST
https://api.sensepass.com/api/transactions/pay
Request Body
Name | Type | Description |
---|---|---|
methodType | string | Transaction Type: 1. 'payment' = Regular Payment 2. 'tokenize' = Tokenization 3. 'authorize' = Authorization 4. 'credit' = Credit transaction (Refund transaction without a reference to original payment transaction) |
amount* | number | The required amount for this transaction (Cents). If products are a part of the transaction - they are all summed up & calculated via the following formula: (amount + vat - discount) * quantity e.g. (10 + 1.7 - 1) * 2. |
creditCardDetails.cardNumber* | string | Credit card number |
branchNumber | string | Location ID provided by SensePass |
currency* | string | [ USD, CAD, ILS, EUR, RUB ] |
creditCardDetails.securityCode* | string | Credit card CVV |
deviceId | string | Terminal unique device ID provided by SensePass (For Device based Transactions) - Required if apiKey is empty |
merchantApiKey | string | Merchant ID provided by SensePass (For Web based Transactions) - Required if deviceId is empty |
reason | string | The reason for this payment - This field will be presented to the consumer |
creditCardDetails.socialID | String | Israel Only - Social ID of the credit card owner |
creditCardDetails.cardExpiration* | string | Credit card expiration MM/YY |
installments | number | Israel Only - Installments |
metadata | array |
See Transactions entity schema: #transaction-entity
Examples
Basic request example to pay using credit card
Response
Transaction Status Flow
Last updated