· 7 years ago · May 25, 2018, 07:22 PM
1<?php
2$secret_key = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee"; // Enter secret key for your service.
3// Secret key validation
4if ($secret_key != $_GET['key']) {
5 echo "Validation error";
6 exit;
7}
8// get the variables from Paygol system
9$transaction_id = $_GET['transaction_id'];
10$service_id = $_GET['service_id'];
11$country = $_GET['country'];
12$custom = $_GET['custom'];
13$price = $_GET['price'];
14$currency = $_GET['currency'];
15// Here you can do whatever you want with the variables, for instance inserting or updating data into your Database
16?>