# Create payment
Charge a customer in a specific country using one of the payment methods available for that country.
POST https://connect-global-api.paytriot.co.uk/payment/create_payment
# Parameters
# Header
| Parameter | Type | Description |
|---|---|---|
| Content-Type | string | The value used to sign the request must match the value sent in the request headers. If the Content-Type header is absent from the request, omit it from the signature |
# Body
| Parameter | Type | Description |
|---|---|---|
| terNo * | string | Merchant identifier given by Paytriot. |
| orderAmount * | number | Order Amount: Up to two decimal places |
| orderCurrency * | string | Short for a 3-digit alphabet currency |
| billCountry * | string | 2-digit abbreviation of the country where the cardholder is located use ["US", "BR"]. |
| orderNo * | string | Merchant's generated ID. |
| remark | string | The statement descriptor to be shown in the end consumer's card statement. |
| notifyUrl * | string | Asynchronous notification interface - beta |
| billAddress * | string | Billing details address |
| billFirstName * | string | Customer's first name. |
| billLastName * | string | Customer's last name. |
| billEmail * | string | Customer's email. |
| billCity * | string | The city where the biller is located |
| billState * | string | The province where the biller is located |
| billZip * | string | Biller zip code |
| billPhone * | string | Billing person phone |
| cardName * | string | Cardholder Name Note: Last name and first name, separated by a space |
| cardNo * | string | Card number: 14-16 digits |
| cvv * | string | Cvv/Captcha: 3-4 digits |
| month * | string | Validity month (2 digits): Format: MM |
| year * | string | Valid year (4 digits): Format: YYYY |
| website* | string | Transaction URL domain name |
| live_mode* | boolean | Test mode: true, Live mode: false |
Please note that all the fields marked with asterisks (*) are mandatory.
# Example
# Sample request
curl -X POST https://connect-global-api.paytriot.co.uk/payment/create_payment \
-H 'Content-Type: application/json' \
-d '{
"orderNo": "20200000000000000093",
"terNo": "70000000",
"orderAmount": "70",
"orderCurrency": "USD",
"billFirstName": "First_name",
"billLastName": "Last_Name",
"billAddress": "str",
"billCity": "Tukwila",
"billState": "WA",
"billCountry": "US",
"billZip": "518109",
"billPhone": "12345678",
"billEmail": "12345678@163.com",
"cardName": "Ken Adams",
"cardNo": "4711100000000000",
"cvv": "123",
"month": "12",
"year": "2022",
"website": "paytriot.co.uk",
"notifyUrl": "paytriot.co.uk",
"remark" : "paytriot_payments",
"live_mode": false
}'
# Sample response
{
"orderErrorCode": "00",
"signInfo": "0B56DE3907A8EFEAE9043D4F6B6C7052CD22062EDD150E600F38D692351FD69E",
"orderNo": "2021111200011430479953",
"orderAmount": "70",
"gatewayNo": "70000000",
"tradeNo": "T022061518183152328162",
"orderCurrency": "USD",
"orderInfo": "Transaction succeeded, we do not charge any fees for testing transation",
"orderStatus": "1",
"remark": "paytriot_payments",
"returnType": 2
}