You can play around with the SDK in SensePass's Front-end Playground website
Backend verification step to complete the payment
This API call must be performed from your backend and not through the JS in the frontend.
make sure to receive the transaction number from the SDK's "pay" callback in order to continue.
POST
https://api.sensepass.com/api/transactions/:transactionNumber/commit
Authentication options:
Device ID / Merchant API Key + Branch Number / Branch API key
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
transactionNumber*
String
transaction number of the ready-transaction
deviceId
String
location's device id - required if no api key
methodType*
Enum
manual_capture or tokenize or authorize
apiKey
String
merchant/location api key
branchNumber
String
required if merchant api key is used.
e.g. 123
callbackURL
String
URL (POST/GET) to receive transaction changes
metadata
Array
currency
String
Defaults to location's locale.
USD | CAD | EUR | ILS (etc)
Required for manual_capture transactions
amount
Amount in cents.
Required for manual_capture
or authorize
transactions
products
Array
posData
Object
Any object/array you'd like to receive using the callback URL
THIS METHOD WILL BE DEPRECATED IN FAVOR OF A NEW ONE
Please refer to Commit Transaction for the new version.
Manual capture allows creating a transaction and call capture request later.
The capture request can only be called once, see Tokenization flow for multi capture flow.
Manual capture is useful for making a payment and updating the payment details later.
Call "transactions/init" in order to create a capture request and add the "methodType" field with "manual_capture".
See here the full docs of creating a transaction
URL: /api/transactions/Init
Request Body:
Response body:
The consumer tap the sticker, or get the payment link through e-mail or SMS, and choose a payment method.
You may add metadata to the request with the key "metadata", follow Metadata Model for further instructions.
URL: /api/transactions/{transactionNumber}/capture
Request Body: