get https://paymentscert.alps.cl/justpay/api/operations
The response of the request will be a list of json (In case the trans_id is in more than one transaction or just a json) with next keys:
Attribute | Data type | Description |
---|---|---|
id | Integer (30) | ALPS Operation ID |
mid_id | Integer (30) | ALPS Merchant ID |
amount | Double | The amount of the transaction. Use 2 decimals |
currency | String (255) | Transaction currency |
channel | Integer | Payment Channel, 1 for Online |
created_at | Datetime | Creation date of the transaction |
trans_id | Integer (255) | Transaction id |
time_expired | String (255) | Time in minutes to expire the token. Value given in minutes |
cod_operation_partner | String (255) | Vendor transaction ID |
cod_payment_partner | String (255) | Vendor payment ID |
cod_transaction_partner | String (255) | Vendor payment ID |
status | Integer (1) | Status transaction ID |
status_description | String (40) | Status transaction description |
user_bank_code | String (40) | User bank redirect (Only for channel 5) |
Signature Calculation
The signature is the chain of concatenated data and Hash SHA256 encryption will be applied.
Signature is builded using these keys arguments:
- public_key
- time
- mid_id
- trans_id
- secure_key
Example:
<?php
$string = $public_key.$time.$mid_id.$trans_id.$secure_key;
$result_signature = hash('sha256', $string);
?>