const request = require('request');
const options = {
method: 'GET',
url: 'https://paymentscert.alps.cl/justpay/api/banks/safetypay',
qs: {
channel: '2',
country: 'CHL',
public_key: 'zyssglikvtltbd2se2hudwl50jjomil2uytp7tpvjtxyfdw469jagk8yvnex9jks'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
All values between
[]
must be replace on the merchant site to emphasize this information. For example: [337013] must be replace by 337013 on your HTML code.