Channel: 5
Provider: ETPay
Payment Method: Tarjetas hites
Available Currencies
Name | Code | Country |
---|---|---|
Chilean Pesos | CLP | Chile |
Request example
curl --location 'http://localhost/justpay/check-out/SecurePayment.php' \
--form 'public_key="zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks"' \
--form 'time="2024-07-17 16:33:11"' \
--form 'amount="1100"' \
--form 'currency="CLP"' \
--form 'trans_id="1"' \
--form 'time_expired="120"' \
--form 'url_ok="https://bit.ly/3S4I7iR"' \
--form 'url_error="https://bit.ly/3S5aOwc"' \
--form 'channel="18"' \
--form 'signature="02fa8a81360f3a52c55af78dff04e1f31e81867d011e9ccc128e9333bbd01ea8"' \
--form 'shopper_information="{
\"Phone\": \"41234567\",
\"email\": \"[email protected]\",
\"country_code\": \"+502\",
\"name_shopper\": \"Fulano\",
\"Num_doc_identi\": \"1234567890123\",
\"type_doc_identi\": \"DPI\",
\"last_name_Shopper\": \"Da Silva\",
\"country\":\"GTM\"}"'
import requests
url = "http://localhost/justpay/check-out/SecurePayment.php"
payload = {'public_key': 'zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks',
'time': '2024-07-17 16:33:11',
'amount': '1100',
'currency': 'CLP',
'trans_id': '1',
'time_expired': '120',
'url_ok': 'https://bit.ly/3S4I7iR',
'url_error': 'https://bit.ly/3S5aOwc',
'channel': '18',
'signature': '02fa8a81360f3a52c55af78dff04e1f31e81867d011e9ccc128e9333bbd01ea8',
'shopper_information': '{
"Phone": "41234567",
"email": "[email protected]",
"country_code": "+502",
"name_shopper": "Fulano",
"Num_doc_identi": "1234567890123",
"type_doc_identi": "DPI",
"last_name_Shopper": "Da Silva",
"country":"GTM"}'}
files=[
]
headers = {}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
import requests
url = "http://localhost/justpay/check-out/SecurePayment.php"
payload = {'public_key': 'zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks',
'time': '2024-07-17 16:33:11',
'amount': '1100',
'currency': 'CLP',
'trans_id': '1',
'time_expired': '120',
'url_ok': 'https://bit.ly/3S4I7iR',
'url_error': 'https://bit.ly/3S5aOwc',
'channel': '18',
'signature': '02fa8a81360f3a52c55af78dff04e1f31e81867d011e9ccc128e9333bbd01ea8',
'shopper_information': '{
"Phone": "41234567",
"email": "[email protected]",
"country_code": "+502",
"name_shopper": "Fulano",
"Num_doc_identi": "1234567890123",
"type_doc_identi": "DPI",
"last_name_Shopper": "Da Silva",
"country":"GTM"}'}
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://localhost/justpay/check-out/SecurePayment.php',
'headers': {
},
formData: {
'public_key': 'zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks',
'time': '2024-07-17 16:33:11',
'amount': '1100',
'currency': 'CLP',
'trans_id': '1',
'time_expired': '120',
'url_ok': 'https://bit.ly/3S4I7iR',
'url_error': 'https://bit.ly/3S5aOwc',
'channel': '18',
'signature': '02fa8a81360f3a52c55af78dff04e1f31e81867d011e9ccc128e9333bbd01ea8',
'shopper_information': '{\n "Phone": "41234567", \n "email": "[email protected]", \n "country_code": "+502", \n "name_shopper": "Fulano", \n "Num_doc_identi": "1234567890123", \n "type_doc_identi": "DPI", \n "last_name_Shopper": "Da Silva",\n "country":"GTM"}'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
Mandatory Data
Attribute | Mandatory | Data type | Description |
---|---|---|---|
public_key | True | String (255) | Public key, unique value that identifies the commerce |
time | True | Datetime | Request data time |
channel | True | Integer | Payment Channel |
amount | True | Double | The amount of the transaction. Min amount: 1000 |
currency | True | String (3) | Transaction currency code |
trans_id | True | String (255) | Transaction id |
time_expired | True | String (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_ok | True | String (255) | URL where shopper will be redirected from the online banking if payment was successful (Must be Https) |
url_error | True | String (255) | URL where shopper will be redirected from the online banking if payment was wrong.(Must be Https) |
signature | True | String (255) | Signature hash256: Review signature calculation |
shopper_information | True | JSON String | JSON String Data: Review JSON index & format |
shopper_information
JSON format
shopper_information
JSON formatField shopper_information must be send in string format (JSON encode).
{"Phone": "41234567", "email": "[email protected]", "country_code": "+502", "name_shopper": "Fulano", "Num_doc_identi": "1234567890123", "type_doc_identi": "DPI", "last_name_Shopper": "Da Silva", "country":"GTM"}
The shopper_information
field is a column corresponding to a json with the next keys:
Parameter | Mandatory | Data Type | Description |
---|---|---|---|
name_shopper | True | String (255) | Shopper's name |
last_name_Shopper | True | String (255) | Shopper's last name |
type_doc_identi | True | String (255) | Identification document [RUT,DNI,CI, ID etc.] |
Num_doc_identi | True | String (255) | Identification document number |
email | True | String (255) | Shopper's e-mail |
country_code | True | String (10) | Country's phone code (Ex. +57) |
Phone | True | String (20) | Shopper's phone number |
Test Transactions
Fill out the required fields with testing card info.

Testing card
Card Number | Correlative | Password | number of installments |
---|---|---|---|
0095121001985050 | 01 | 1234 | 1 |
Errors
This payment integration only sends notifications for successfully completed transactions. This means that error messages will not be generated for failed transactions.