Edit file File name : synotec.site.php Content :<?php include_once(dirname(__FILE__) . '/auth_tokens.php'); error_reporting(0); ini_set('display_errors', 0); // $_POST['auth-token'] = '246a2119917c7fb9d7ee3dca94f41461'; if ((empty($_POST['business']) && $_POST['auth-token'] != SYNOTEC_SITE_PAYMENT_AUTH_TOKEN)) { header('location:https://www.synotec.site/packages?error=request-url-not-valid'); } //load RSA library include_once 'Crypt/RSA.php'; //initialize RSA $rsa = new Crypt_RSA(); $publickey = "-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6JhIexNdCdsgZo+IjEM3vjG1iT/tSG5RzbywYHBKcc7lcyuzuSmHq/Bq+I1wImwuUVo4RaIXzddCZWjbPBAedsX9gel1cW+edsi3sHXv780EWdH2u+x010nXJgJNRtYVGk/fh4J6k8L6kdI/bbpLNAargVbt/Ea6y3LMyFFOpTwIDAQAB-----END PUBLIC KEY-----"; // $publickey = "-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCeAzhuD3bxior/gxkO/fBzHGlkZ8YvznfRUAuOiBDDvEoLw7Ptex4K+Rn0M2j0IwLc2A4+Fm9NCW6zkyZdHIUpgTuXQRjkevPbBsuBiReDHeew6HBs7CpHYyjpI/xG2ecNdICR0iibCZgTqe/LMW3wvCIrU/nU0IQB67Rs6nmQkQIDAQAB-----END PUBLIC KEY-----"; //load public key for encrypting $rsa->loadKey($publickey); //encode for data passing $plaintext = $_POST['order-no'] . '|' . $_POST['price']; // unique_order_id|total_amount $encrypt = $rsa->encrypt($plaintext); $payment = base64_encode($encrypt); $custom_fields = base64_encode($_POST['business'] . '|' . $_POST['auth-token'] . '|' . $_POST['order-no'] . '|' . $_POST['pay-for'] . '|' . $_POST['pay-type']); //custom fields // business|auth-token|order-no|pay-for|pay-type //checkout URL $url = 'https://webxpay.com/index.php?route=checkout/billing'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"> <link rel="stylesheet" href="https://www.anangaya.lk/assets/css/main.css"> <link rel="stylesheet" href="https://www.anangaya.lk/assets/css/responsive.css"> <!-- <link rel="shortcut icon" href="https://www.anangaya.lk/assets/images/favicon.png" type="image/x-icon"> --> <title>Sublime Payments | checkout form</title> </head> <body> <section class="log-reg h-100"> <div class="container"> <div class="row"> <div class="col-sm-6 d-flex justify-content-start align-items-center"> <a class="navbar-brand" href="https://www.webmaker.lk/" target="_blank"> <img src="https://webmaker.lk/assets/images/logo.png" class="logo logo-scrolled" alt="trades.lk logo"> </a> </div> <div class="col-sm-6 d-flex justify-content-end align-items-center"> <a class="navbar-brand" href="https://sublime.lk/" target="_blank"> <img src="img/sublime-logo.png" class="img-responsive " alt="" /> </a> </div> </div> <div class="row justify-content-center"> <div class="col-lg-12"> <div class="log-reg-inner h-100 pr-0 overflow-hidden"> <div class="section-header pt-4"> <p> Let's purchase your interest! Just fill in the fields below, and click pay now. </p> </div> <div class="main-content"> <form action="<?php echo $url; ?>" method="POST"> <h4 class="content-title"><?= $_POST['pay-for'] ?> </h4> <div class="form-row"> <div class="form-group col-md-6"> <label for="">First Name*</label> <input type="text" class="my-form-control" placeholder="Enter Your First Name" name="first_name" value="<?= explode(" ", $_POST['name'])[0] ?>" required> </div> <div class="form-group col-md-6"> <label for="">Last Name*</label> <input type="text" class="my-form-control" placeholder="Enter Your Last Name" name="last_name" value="<?= explode(" ", $_POST['name'])[1] ?>" required> </div> <div class="form-group col-md-6"> <label for="">Email Address*</label> <input type="email" class="my-form-control" placeholder="Enter Your Email" name="email" value="<?= $_POST['email'] ?>" required> </div> <div class="form-group col-md-6"> <label for="">Phone*</label> <input type="text" class="my-form-control" placeholder="Enter Your Phone" name="contact_number" value="<?= $_POST['phone'] ?>" required> </div> <div class="form-group col-md-12"> <label for="">Address </label> <input type="text" class="my-form-control" placeholder="Enter Your Address" name="address_line_one" value="<?= $_POST['address'] ?>"> </div> <div class="form-group col-md-6"> <label for="">City</label> <input type="text" class="my-form-control" placeholder="Enter Your City" name="city" value="<?= $_POST['city'] ?>"> </div> <div class="form-group col-md-6"> <label for="">Postal Code</label> <input type="text" class="my-form-control" placeholder="Enter Postal code" name="postal_code" value="<?= $_POST['postal-code'] ?>"> </div> <div class="form-group col-md-6"> <label for="">Amount*</label> <input class="my-form-control" type="text" value="<?= number_format($_POST['price'], 2) ?>" readonly> </div> <div class="form-group col-md-6"> <label for="">currency*</label> <input class="my-form-control" type="text" name="process_currency" value="LKR" readonly> </div> </div> <div class="form-row"> <div class="form-group col-md-12"> <div id="checkbox" class="d-flex align-items-center position-relative box-container"> <input type="checkbox" id="agree" name="agree-terms-and-condition" value="yes" required style="width: 20px;height: 20px;"> <label for="agree" class="text-blue m-0 pl-2"> <u> I agree to the <a target="_blank" href="https://www.webmaker.lk/terms-and-condition"> Terms And Conditions of webmaker.lk </a> </u> </label> </div> </div> </div> <input type="hidden" name="cms" value="PHP"> <input type="hidden" name="secret_key" value="b1197ac7-098f-4031-810d-b56605b33daf"> <!-- <input type="hidden" name="secret_key" value="5b85b6ff-5cb6-4852-9c7c-c88667e36db2"> --> <input type="hidden" name="custom_fields" value="<?php echo $custom_fields; ?>"> <input type="hidden" name="payment" value="<?php echo $payment; ?>"> <input type="hidden" name="country" value="srilanka"> <input type="submit" class="custom-button" name="pay" value="Pay Now"> </form> </div> </div> </div> </div> </div> </section> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script> </body> </html>Save