This API allows to manage credit card payments using a terminal
Creates a cashier session on platform it is need it to process a payment
This session last 1 hour
api-key | {api-key}
Key Provided to use this platform |
Content-Type | application/json |
{
"contextrequest": {
"tenantName": "{tenant_name}"
},
"login": {
"credentialType": "USER",
"value": "pos_cashier_2"
},
"Pass": {
"securityElementType": "password",
"value": "{cashier_password}"
}
}
The data to be submitted to the API is composed of the following fields:
field | Note | Example | Required | |||||
---|---|---|---|---|---|---|---|---|
contextrequest.tenantName | Company code | Fintiv | true | |||||
login.credentialType | Credential type must be "USER" | USER | true | |||||
login.value | Login user of the cashier | cashier | true | |||||
Pass.securityElementType | Credential type must be "password" | password | true | |||||
Pass.value | Cashier password | 1959caadac9b13dcb3 | true | |||||
var settings = {
"url": "http://api-cloudpay-dev.fintiv.co:8080/payment/api/v1/services/signon",
"method": "POST",
"timeout": >0,
"headers": {
"api-key": "{api-key}",
"Content-Type": "application/json"
},
"data": "{
"contextrequest": {
"tenantName": "{tenant_name}"
},
"login": {
"credentialType": "USER",
"value": "cashier"
},
"Pass": {
"securityElementType": "password",
"value": "{cashier_password}"
}",
};
$.ajax(settings).done(function (response) {
console.log(response);
console.log(response);
});