Channel: 12
Provider: Nuvei
Payment Method: APM
Available Currencies
Name | Code | Country |
---|---|---|
Colombian Pesos | COP | Colombia |
Mexican Peso | MXN | Mexico |
Brazilian Real | BRL | Brazil |
Request example
curl --request POST \
--url http://paymentscert.alps.cl/justpay/check-out/SecurePayment \
--data public_key=zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks \
--data time=2022-10-13T14:39:09 \
--data channel=12 \
--data amount=10 \
--data currency=COP \
--data trans_id=1 \
--data time_expired=120 \
--data url_ok=https://bit.ly/3S4I7iR \
--data url_error=https://bit.ly/3S5aOwc \
--data signature=50743f5c8b768be0e336f2f08b057dbc587c2cf2186554ff4992e27c73e73e3c
--data 'shopper_information={"Phone": "1122223333", "email": "[email protected]", "country_code": "+52", "name_shopper": "Fulano", "Num_doc_identi": "415792634157926323", "type_doc_identi": "CURP","last_name_Shopper": "Da Silva”,"country":"BRA"}'
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://paymentscert.alps.cl/justpay/check-out/SecurePayment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "public_key=zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks&time=2022-10-13T14%3A39%3A09&channel=12&amount=10¤cy=COP&trans_id=1&time_expired=120&url_ok=https%3A%2F%2Fbit.ly%2F3S4I7iR&url_error=https%3A%2F%2Fbit.ly%2F3S5aOwc&signature=50743f5c8b768be0e336f2f08b057dbc587c2cf2186554ff4992e27c73e73e3c&shopper_information=%7B%27Phone%27%3A%20%271122223333%27%2C%20%27email%27%3A%20%27teste%40email.com%27%2C%20%27country_code%27%3A%20%27%2B52%27%2C%20%27name_shopper%27%3A%20%27Fulano%27%2C%20%27Num_doc_identi%27%3A%20%27415792634157926323%27%2C%20%27type_doc_identi%27%3A%20%27CURP%27%2C%20%27last_name_Shopper%27%3A%20%27Da+Silva%27%2C%20%27country%27%3A%20%27BRA%27%7D",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import requests
url = "http://paymentscert.alps.cl/justpay/check-out/SecurePayment"
payload = "public_key=zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks&time=2022-10-13T14%3A39%3A09&channel=12&amount=10¤cy=COP&trans_id=1&time_expired=120&url_ok=https%3A%2F%2Fbit.ly%2F3S4I7iR&url_error=https%3A%2F%2Fbit.ly%2F3S5aOwc&signature=50743f5c8b768be0e336f2f08b057dbc587c2cf2186554ff4992e27c73e73e3c&shopper_information=%7B%27Phone%27%3A%20%271122223333%27%2C%20%27email%27%3A%20%27teste%40email.com%27%2C%20%27country_code%27%3A%20%27%2B52%27%2C%20%27name_shopper%27%3A%20%27Fulano%27%2C%20%27Num_doc_identi%27%3A%20%27415792634157926323%27%2C%20%27type_doc_identi%27%3A%20%27CURP%27%2C%20%27last_name_Shopper%27%3A%20%27Da+Silva%27%2C%20%27country%27%3A%20%27BRA%27%7D"
response = requests.request("POST", url, data=payload)
print(response.text)
const qs = require("querystring");
const http = require("http");
const options = {
"method": "POST",
"hostname": "paymentscert.alps.cl",
"port": null,
"path": "/justpay/check-out/SecurePayment",
"headers": {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(qs.stringify({
public_key: 'zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks',
time: '2022-10-13T14:39:09',
channel: '12',
amount: '10',
currency: 'COP',
trans_id: '1',
time_expired: '120',
url_ok: 'https://bit.ly/3S4I7iR',
url_error: 'https://bit.ly/3S5aOwc',
signature: '50743f5c8b768be0e336f2f08b057dbc587c2cf2186554ff4992e27c73e73e3c',
shopper_information: '{"Phone": "1122223333", "email": "[email protected]", "country_code": "+52", "name_shopper": "Fulano", "Num_doc_identi": "415792634157926323", "type_doc_identi": "CURP","last_name_Shopper": "Da Silva”,"country":"BRA"}'
}));
req.end();
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. Use 2 decimals. |
currency | True | String(3) | Transaction currency code |
trans_id | True | String (255) | Transaction id |
time_expired | True | Integer | Time in minutes to expire the token. Value given in minutes. Minimum Suggested: 30 minutes |
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": "1122223333", "email": "[email protected]", "country_code": "+52", "name_shopper": "Fulano", "Num_doc_identi": "415792634157926323", "type_doc_identi": "CURP","last_name_Shopper": "Da Silva”,"country":"BRA"}'
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 |
country | True | String (3) | Shopper's country [MEX, PER, ECU, COL] |
Filters
Using the parameter filter_by
you may filter to show only the desire APM
Currency | APM | filter_by |
---|---|---|
COP | PSE | apmgw_PSE_PZ |
COP | Daviplata | apmgw_Daviplata |
COP | Efecty | apmgw_Efecty |
COP | Red Servi | apmgw_Red_Servi |
MXN | Spei | apmgw_Spei |
MXN | OXXO Pay | apmgw_OXXO_PAY |
MXN | Pay with Cash | apmgw_PayCash |
BRL | PIX | apmgw_PIX |
BRL | Boleto | apmgw_BOLETO |
Errors
This payment integration only sends notifications for successfully completed transactions. This means that error messages will not be generated for failed transactions.