Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 5.0.1.0
- * @ Author : DeZender
- * @ Release on : 22.04.2022
- * @ Official site : http://DeZender.Net
- *
- */
- function easypay_MetaData()
- {
- return ['DisplayName' => 'Easypaisa', 'APIVersion' => '1.1', 'DisableLocalCredtCardInput' => true, 'TokenisedStorage' => false];
- }
- function easypay_config()
- {
- $licenseFields = [
- 'FriendlyName' => ['Type' => 'System', 'Value' => 'Easypaisa']
- ];
- $command = 'GetPaymentMethods';
- $results = localAPI($command, []);
- if (($results['result'] == 'success') && !in_array('easypay', array_column($results['paymentmethods']['paymentmethod'], 'module'))) {
- return array_merge($licenseFields, [
- 'licenseKey' => ['FriendlyName' => 'License Key', 'Type' => 'text', 'Description' => 'Enter your License Key here. <br><a class=\'text-primary\' href=\'https://webit.pk/billing/cart.php?pid=136\'>Click here to buy a license</a>']
- ]);
- }
- $gatewayParams = getGatewayVariables('easypay');
- $lisMsg = '';
- if ($gatewayParams['licenseKey'] == NULL) {
- return array_merge($licenseFields, [
- 'licenseKey' => ['FriendlyName' => 'License Key', 'Type' => 'text', 'Description' => 'Enter your License Key here. <br><a class=\'text-primary\' href=\'https://webit.pk/billing/cart.php?pid=136\'>Click here to buy a license</a>']
- ]);
- }
- $license = $gatewayParams['licenseKey'];
- $local = (file_get_contents(__DIR__ . '/callback/easypayloc') !== false ? file_get_contents(__DIR__ . '/callback/easypayloc') : '');
- $results = easypay_check($license, $local);
- if ($results['status'] != 'Active') {
- switch ($results['status']) {
- case 'Invalid':
- $lisMsg = '<p class=\'text-danger\'>License key is Invalid</p><a class=\'text-primary\' href=\'https://webit.pk/billing/cart.php?pid=136\'>Click here to buy a license</a>';
- break;
- case 'Expired':
- $lisMsg = '<p class=\'text-danger\'>License key is Expired</p><a class=\'text-primary\' href=\'https://webit.pk/billing/cart.php?pid=136\'>Click here to buy a license</a>';
- break;
- case 'Suspended':
- $lisMsg = '<p class=\'text-danger\'>License key is Suspended</p><a class=\'text-primary\' href=\'https://webit.pk/billing/cart.php?pid=136\'>Click here to buy a license</a>';
- break;
- default:
- $lisMsg = '<p class=\'text-danger\'>Invalid Response</p>';
- return array_merge($licenseFields, [
- 'licenseKey' => ['FriendlyName' => 'License Key', 'Type' => 'text', 'Description' => $lisMsg]
- ]);
- }
- }
- else {
- if (isset($results['localkey'])) {
- file_put_contents(__DIR__ . '/callback/easypayloc', $results['localkey']);
- ........................................................................
- .........................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement