The request does a risk check of transaction details against configured risk management rules: white and black lists, amount limits, velocity limits and processing restrictions (for example to block certain card BINs).
Request
To check a transaction against risk rules, send a POST to https://gateway.pay-cross.com/transactions/checkups with the following parameters:
Note
The request body must be wrapped in a top-level request{} object.
amount
required
integer An amount in minimal currency units, for example, $32.45 must be sent as 3245.
currency
required
string A currency in the ISO-4217 format, for example USD.
description
required
string (255) A short description of the order.
tracking_id
required
string (255) An ID of the transaction or the order. Use unique values to get relevant transaction information with a query request. Otherwise, you will get an array of up to 10 recent transactions with the matching tracking_id. Can be multiple values separated with semicolons. For example, "cbe59142-90af-4aea-b5a5-5bf3f66cf3da;f7883cb9-0e26-43a7-beb7-4027cb55d1a6;4a6a89d5-6950-400f". If multiple values are sent in the request, the transaction search in the back office system can be performed by any of them.
duplicate_check
boolean The parameter controls whether the payment gateway will do duplicate check of received requests to check up a card. By default, it is true and requests submitted with the same amount and number or token within 30 seconds will be rejected.
language
string A language of the merchant's checkout page or the customer.
If the parameter is set and transaction notification emails to customers are enabled, PayCross will dispatch those emails in the language locale. English (en) is set by default. Possible values of language parameter.
notification_url
string A URL where a notification about a transaction will be posted to. The notification request format equals a transaction response format.
verification_url
string A URL where a transaction verification request will be posted to. The verification request format equals a transaction response format.
test
boolean true or false. The transaction will be a test one if it is true.
object
number
conditionally required
string (19) A card number.
Required, if a card token is not submitted in the request.
holder
conditionally required
string (32) A cardholder name as it appears on the card.
Required, if a card token is not submitted in the request.
exp_month
conditionally required
integer A card expiration month expressed with two digits (for example, 01).
Required, if a card token is not submitted in the request.
exp_year
conditionally required
integer A card expiration year expressed with four digits (for example, 2027).
Required, if a card token is not submitted in the request.
verification_value
conditionally required
string A 3- or 4-digit security code (called CVC2, CVV2 or CID depending on a credit card brand).
Required, if a card token is not submitted in the request.
token
conditionally required
string A card token that was received in the transaction response when the card was charged for the first time.
Required, if card details are not submitted in the request.
conditionally required
object A section of the customer information. Contact the Tech Support Team to check if your acquirer requires any of the section parameters.
ip
conditionally required
string The customer's IP address.
email
conditionally required
string The customer's email.
external_id
string (255) The customer's identifier in the merchant's system.
conditionally required
object A section of the customer's address details. Contact the Tech Support Team to check if your acquirer requires any of the section parameters.
first_name
conditionally required
string (30) The customer's first name.
last_name
conditionally required
string (30) The customer's last name.
country
conditionally required
string The customer's billing country in the ISO 3166-1 Alpha-2 format.
city
conditionally required
string (60) The customer's billing city.
state
conditionally required
string The customer's two-letter billing state only if the billing address country is IN, US or CA.
zip
conditionally required
string The customer's billing ZIP or postal code. If country=US, zip format must be NNNNN or NNNNN-NNNN.
string A card hash. It is constant even if either the expiration date or the cardholder is changed.
token
required
string A card token. Store the token and charge returning customers or run recurring charges without customers' billing details. The token allows you to save the customer's details and charge them whenever they make new purchases, or you renew their services.