31 - Trubit (ARS)

Channel: 31

Provider: Trubit

Payment Method: Trubit

Available Currencies

NameCodeCountry
Argentine pesoARSArgentina

Request example

curl --location 'http://uat-payments.alps.cl/justpay/check-out/SecurePayment.php' \
--form 'public_key="zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks"' \
--form 'time="2024-07-17 16:33:11"' \
--form 'amount="50"' \
--form 'currency="ARS"' \
--form 'trans_id="1"' \
--form 'time_expired="120"' \
--form 'url_ok="https://bit.ly/3S4I7iR"' \
--form 'url_error="https://bit.ly/3S5aOwc"' \
--form 'channel="31"' \
--form 'signature="5c6ebb4dced3dab4e101448a47f4ca1c3fb3776114ea181ac5ef515ed365ffd2"' \
--form 'shopper_information="{
            \"Phone\": \"1123456789\", 
            \"email\": \"[email protected]\", 
            \"country_code\": \"+54\", 
            \"name_shopper\": \"Fulanito\", 
            \"Num_doc_identi\": \"20123456\", 
            \"type_doc_identi\": \"DNI\",
            \"last_name_Shopper\": \"Pérez\",                                                  
            \"country\": \"ARG\"

       }"'
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://uat-payments.alps.cl/justpay/check-out/SecurePayment.php',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('public_key' => 'zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks','time' => '2024-07-17 16:33:11','amount' => '50','currency' => 'ARS','trans_id' => '1','time_expired' => '120','url_ok' => 'https://bit.ly/3S4I7iR','url_error' => 'https://bit.ly/3S5aOwc','channel' => '31','signature' => '5c6ebb4dced3dab4e101448a47f4ca1c3fb3776114ea181ac5ef515ed365ffd2','shopper_information' => '{
            "Phone": "1123456789", 
            "email": "[email protected]", 
            "country_code": "+54", 
            "name_shopper": "Fulanito", 
            "Num_doc_identi": "20123456", 
            "type_doc_identi": "DNI",
            "last_name_Shopper": "Pérez",                                                  
            "country": "ARG"

       }'),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "http://uat-payments.alps.cl/justpay/check-out/SecurePayment.php"

payload = {'public_key': 'zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks',
'time': '2024-07-17 16:33:11',
'amount': '50',
'currency': 'ARS',
'trans_id': '1',
'time_expired': '120',
'url_ok': 'https://bit.ly/3S4I7iR',
'url_error': 'https://bit.ly/3S5aOwc',
'channel': '31',
'signature': '5c6ebb4dced3dab4e101448a47f4ca1c3fb3776114ea181ac5ef515ed365ffd2',
'shopper_information': '{
            "Phone": "1123456789", 
            "email": "[email protected]", 
            "country_code": "+54", 
            "name_shopper": "Fulanito", 
            "Num_doc_identi": "20123456", 
            "type_doc_identi": "DNI",
            "last_name_Shopper": "Pérez",                                                  
            "country": "ARG"

       }'}
files=[

]
headers = {}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'http://uat-payments.alps.cl/justpay/check-out/SecurePayment.php',
  'headers': {
  },
  formData: {
    'public_key': 'zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks',
    'time': '2024-07-17 16:33:11',
    'amount': '50',
    'currency': 'ARS',
    'trans_id': '1',
    'time_expired': '120',
    'url_ok': 'https://bit.ly/3S4I7iR',
    'url_error': 'https://bit.ly/3S5aOwc',
    'channel': '31',
    'signature': '5c6ebb4dced3dab4e101448a47f4ca1c3fb3776114ea181ac5ef515ed365ffd2',
    'shopper_information': '{\n            "Phone": "1123456789", \n            "email": "[email protected]", \n            "country_code": "+54", \n            "name_shopper": "Fulanito", \n            "Num_doc_identi": "20123456", \n            "type_doc_identi": "DNI",\n            "last_name_Shopper": "Pérez",                                                  \n            "country": "ARG"\n\n       }'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Mandatory Data

AttributeMandatoryData typeDescription
public_keyTrueString (255)Public key, unique value that identifies the commerce
timeTrueDatetimeRequest data time
channelTrueIntegerPayment Channel
amountTrueDoubleThe amount of the transaction. Min amount: 1000
currencyTrueString (3)Transaction currency code
trans_idTrueString (255)Transaction id
time_expiredTrueString (255)Time in minutes to expire the token. Value given in minutes. Minimum Suggested: Online: 30 minutes Cash: 2 hours For Brazil: Online: 2 hours Cash 24 hrs
url_okTrueString (255)URL where shopper will be redirected from the online banking if payment was successful (Must be Https)
url_errorTrueString (255)URL where shopper will be redirected from the online banking if payment was wrong.(Must be Https)
signatureTrueString (255)Signature hash256: Review signature calculation
shopper_informationTrueJSON StringJSON String Data: Review JSON index & format

shopper_information JSON format

📘

Field shopper_information must be send in string format (JSON encode).

{
            "Phone": "1123456789", 
            "email": "[email protected]", 
            "country_code": "+54", 
            "name_shopper": "Fulanito", 
            "Num_doc_identi": "20123456", 
            "type_doc_identi": "DNI",
            "last_name_Shopper": "Pérez",                                                  
            "country": "ARG"
       }

The shopper_information field is a column corresponding to a json with the next keys:

ParameterMandatoryData TypeDescription
name_shopperTrueString (255)Shopper's name
last_name_ShopperTrueString (255)Shopper's last name
type_doc_identiTrueString (255)Identification document [CUIT,DNI,CUIL, CDI etc.]
Num_doc_identiTrueString (255)Identification document number
emailTrueString (255)Shopper's e-mail
country_codeTrueString (10)Country's phone code (Ex. +57)
PhoneTrueString (20)Shopper's phone number
countryTruestring (20)Shopper's country

Error

Parameter Errors

CodeMessageDescription
-4010PARAM_IS_INVALIDParameter 0 is invalid
-4011PARAM_EXCEEDS_LIMIT_LENGTHParameter 0 exceeds the limit length of 1
-4012PARAM_EXCEEDS_LIMIT_QUANTITYParameter 0 exceeds the limit quantity of 1
-4013PARAM_MUST_LENGTH_CHARThe length of parameter 0 must be 1 characters
-4014PARAM_MUST_LENGTH_LETTERSThe length of parameter 0 must be 1 letters
-4015PARAM_MUST_LENGTH_NUMERICThe length of parameter 0 must be 1 digits
-4016PARAM_MUST_POSITIONThe parameter 0 must be 1 at position 2
-4021PARAM_NOT_IS_NUMERICParameter 0 is not numeric type
-4022PARAM_NOT_IS_ALPHABETICParameter 0 is not alphabetic type
-4023PARAM_NOT_IS_ALPHANUMERICParameter 0 is not alphanumeric type
-4024PARAM_IS_INVALID_ISO1Parameter 0 is an invalid ISO 3166-1 code
-4025PARAM_IS_INVALID_ISO2Parameter 0 is an invalid ISO 3166-2 code
-4026PARAM_IS_INVALID_ACCOUNT_TYPEParameter 0 is an invalid account owner type
-4040COMMON_ERROR_CODEfill with unknown errors
-4041COMMON_TRAN_CODEfill with unknown errors
-1174REPEATED_SUBMIT_REQUESTRepeated submit request

Payment Method Errors

CodeMessageDescription
-4027PAYMENT_NOT_EXISTThe payment method doesn't exist
-5001PAYMENT_SELECT_AUTOPlease select automatic payment method
-5002PAYMENT_NOT_ACCOUNT_INFOPayment method has no bank account information
-5003PAYMENT_NOT_EDITPayment method cannot be modified temporarily
-5004PAYMENT_NOT_CONFIG_AUTO_APIPayment method does not have automatic bank API configured
-5014PAYMENT_ACCOUNT_INFO_AND_MC_SAMEBank card information matches merchant's card information
-5017PAYMENT_INVALIDInvalid payment method
-5018PAYMENT_AND_PLATFORM_NOT_MATCHPayment method does not match the platform configuration, please choose again
-5048PAYMENT_TYPE_INVALIDThe payment type is invalid
-5053PAYMENT_ACCOUNT_ALREADY_EXISTSAccount already exists
-5054PAYMENT_ADD_FAILFailed to add a payment method; please edit and resubmit
-2017EMAIL_EXISTThe email already exists

Merchant Errors

CodeMessageDescription
-5005MC_EXISTMerchant already exists
-5006MC_NOT_EXISTMerchant does not exist
-5007MC_INVALIDInvalid merchant information
-5015CUIT_AND_MC_NOT_MATCHThe CUIT does not match with your selected merchant
-5038MC_ACCOUNT_NOT_EXISTThe merchant account does not exist
-5039MC_SETTINGS_EXISTThe merchant settings do not exist
-5056PAYMENT_AND_MC_SETTINGS_NOT_MATCHPayment information doesn't match merchant configuration
-5059MC_REGISTER_FAILMerchant registration failed
-5064EXCEEDED_MC_NUMBERExceeded the maximum number of merchants (max: 0)
-5065MC_ACCOUNT_INVALIDThe merchant channel is invalid
-5066MC_ACCOUNT_REVIEWINGThe merchant's account is under verification
-5067MC_ACCOUNT_ENDThe merchant account certification process has ended
-5069MC_NAME_EXISTThe merchant name already exists
-5070MC_NOT_OPEN_ACCOUNTThe merchant has not activated the automatic mode account for 0
-5071MC_CHANNEL_INVALIDMerchant channel is invalid

Order Errors

CodeMessageDescription
-5008ORDER_REFUND_NOT_OPRefund orders cannot be processed
-5009ORDER_PAYINGOrder is in payment process; current operation unavailable
-5010ORDER_AUTO_NOT_MANUAL_COMPLETEAutomated orders cannot be completed manually
-5011ORDER_AUTO_NOT_CURRENT_OPERATIONAutomated orders cannot perform current operation
-5034ORDER_ENDThe order process is over
-5035ORDER_NOT_FINISHOrders cannot be filled at present
-5041ORDER_UNPAID_CAN_UPLOADOnly non-payment or pending-document orders can upload supporting documents
-5050ORDER_MIN_AMOUNTOrder does not meet the minimum limit (min 0 1)
-5060ORDER_MAX_AMOUNTOrder does not meet the maximum limit (max 0 1)

Trading Pair Errors

CodeMessageDescription
-5019SYMBOL_INVALIDInvalid trading pair
-5020SYMBOL_BUY_CLOSEDBUY direction is closed
-5021SYMBOL_SELL_CLOSEDSELL direction is closed
-5045FIAT_INVALIDInvalid fiat
-5047SYMBOL_AND_PAYMENT_NOT_MATCHThe symbol does not match the payment method
-5051PAYMENT_FIAT_AND_ORDER_NOT_MATCHFiat currency in payment method does not match order fiat
-5057COUNTRY_AND_FIAT_NOT_SUPPORTThe selected country and fiat currency are not supported
-5058TOKEN_NOT_SUPPORTThe selected crypto is not supported

Risk Control Errors

CodeMessageDescription
-5022PRICE_BELOW_SAFEPrice is below the trade line
-5023BASE_RATE_CONFIG_INVALIDThe current coin pair is not supported
-5024USER_RATE_CONFIG_INVALIDInvalid user rate configuration; contact admin
-5025RISK_RATE_CONFIG_INVALIDInvalid risk control rate configuration; contact admin
-5027RATE_INVALIDCurrent exchange rate is invalid

KYC/KYB Errors

CodeMessageDescription
-5032NOT_WHITELIST_USERNot an OTC whitelist user; contact customer service
-5033NOT_API_USERNot an API user; contact customer service
-5037NEED_UPLOAD_DOCUMENTSYou need to upload supporting documents
-5042USER_NOT_UPLOAD_DOCUMENTSNo supporting documents were uploaded
-5043NEED_PASS_KYC_OR_KYBYou must pass KYC/KYB to perform this operation
-5044PAYMENT_ADD_NEED_PASS_KYC_OR_KYBYou must pass KYC/KYB to add this payment method
-5055KYC_OR_KYB_REGISTER_FAILKYC/KYB registration failed
-5061MAX_DOCUMENTExceeded maximum uploadable documents (max 0)
-5062MC_KYC_REVIEWINGMerchant KYC is under verification
-5063MC_KYC_ENDMerchant KYC certification process has ended

Compliance Errors

CodeMessageDescription
-5012BANK_NOT_SUPPORTBank not supported
-5013MC_COUNTRY_NOT_SUPPORTAutomatic API is not supported in this country
-5016FIAT_NOT_MATCHThe fiat currency does not match the merchant
-5026PEND_ORDER_NUM_LIMITToo many pending orders (current: 0); wait before creating new ones
-5028SELF_ORDER_CLOSESelf-service ordering is temporarily closed
-5029ORDER_UID_EXCEED_LIMITOrder exceeds user's monthly transaction limit
-5030ORDER_MC_EXCEED_LIMITOrder exceeds user's monthly limit with the merchant
-5031TRADE_TEMP_NOT_PROCEEDTransaction temporarily unavailable; contact support
-5036PAYMENT_FEE_INVALIDFee config invalid; contact support
-5046COMMON_ERRORPlease try again or contact customer service
-5049CONFIG_INVALIDInvalid config
-5052DESELECT_MCMerchant selection is not available for manual payment methods
-5068NOT_RELIANCE_MODEYou are not a Reliance model user; function unavailable
-5072ACCOUNT_TYPE_AND_BANK_CODE_NOT_MATCHAccount type [0] does not support bank code [1]