In order to test the notification, a Url to notify must be configured with ALPS integration team.
Parameter Description Data Type Example public_keyPublic key, unique value that identifies the commerce String (255) 3e305d5cdd126be57d06d52b860dfd8c4f5706 timeRequest data time Date Time 2018-01-25T19:49:57 channelPayment channel Integer 1, 2, 3, 4, 5, 6, 8, 9, 10 amountThe amount of the transaction Double 1000.00 currencyTransaction currency String (3) USD, CLP, MXN, etc. trans_IDMerchant's transaction id String (255) 10001, WX03-01, 001-012312220 signatureSignature hash256:Review signature calculation String (255) hsg0g924215578ae4096500a6c3888
The signature is the chain of concatenated data and Hash SHA256 encryption will be applied.
Example:
PHP
<?php
$string = $time.$channel.$amount.$currency.$trans_id.$secret_key;
$result_signature = hash('sha256', $string);
?>
We send extra fields in output data according to the channel.
Parameter Data type Description Example BankName String max (60 Bank name Banco del pueblo BankCountry String max (10) Bank country code CHL ChannelType String max (60) Channel used by the shopper to pay for the transaction 1 – Online, 2 - Cash
Parameter Data type Description Example card_number String (255) Last 4 digit XXXXXXXXXXXX1993 auth_number String (255) Authorization Number 004871 card_brand String (255) Card Brand WEBPAY_PLUS_DEB, WEBPAY_PLUS_CRED, WEBPAY_PLUS
Parameter Data type Description Example user_bank String (255) Bank name of the customer Banco de Chile / Edwards user_rut String (255) User's national identity document 11111111-1 user_account String (255) Bank account number and name of the customer's bank Cuenta Corriente 123456789
Parameter Data type Description Example card_number String max (25) First 6 and last 4 digits 123456XXXXXX1234 card_brand String (255) Card brand name Visa, Mastercard, American Express, etc. auth_number String max (25) Authorization number 345678 card_holder_name String max (255) Card holder name John Doe issuing_bank String max (255) Issuing bank BANCO DEL PUEBLO