POST Pay With Card Manually

http://api-cloudpay-dev.fintiv.co:8080/payment/v1/payWithCard

Allow to manage payments filling manually card information on the terminal

Headers

token {cashier_token}

Cashier token

sessionKey {sessionKey}

Terminal token

tenantName {tenant_name}

Tenant name

api-key {api-key}

Key Provided to use this platform

Content-Type application/json

Body

raw (application/json)

    {
        "merchantId": "100000000101",
        "hsn": "123456789012345",
        "serviceType": 0,
        "amount": "1010",
        "includeSignature": true,
        "includePIN": true,
        "beep": true,
        "paymentType": "0",
        "currencyType": "USD",
        "attributes": {}
    }
    

The data to be submitted to the API is composed of the following fields:

field Note Example Required
merchantId Identifier of the company 100000000101 true
hsn Identifier of the card terminal 123456789012345 true
serviceType Unique identifier of the service to use 0 true
amount Amount expressed in cents, example = $10 = 1000 1010 true
paymentType Payment type to use, for Credit Card = 0, Crypto Currency = 1, Debit Card = 2 0 true
currencyType Currency code to use USD true
includeSignature Indicates if the payment required signature true false
includePIN Indicates if the payment required pin false false
beep Indicates if the terminal should sound false false
attributes Custon information { "promoCode": "NY20019", "discount": "25" } false

Example Request

Pay With Card
{
	var settings = {
  "url": "http://api-cloudpay-dev.fintiv.co:8080/payment/v1/payWithCardManually",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "token": "{cashier_token}}",
    "sessionKey": "{sessionKey}}",
    "tenantName": "{tenant_name}}",
    "api-key": "{api-key}}",
    "Content-Type": "application/json"
  },
  "data":
	{
		'merchantId': '800000000264',
		'hsn': '17244PP83363874',
		'serviceType': 0,
		'amount': '1000',
		'includeSignature': true,
		'includePIN': true,
		'beep': true,
		'paymentType': '0',
		'currencyType': 'USD',
		'attributes': {
			'promoCode': 'NY20019',
			'discount': '25'
		}
	}",
};
$.ajax(settings).done(function (response) {
  console.log(response);
});