Jump to content

Payment Module


Nanox Flow

Recommended Posts

Hi!

Im developing one Payment gateway module, but im facing one issue I cant get the client currency

i have the file module.php on modules/gateway/ and on that file i have the Gateway Params and function module ($params)
On the function module($params) i have the postfield and $currency params, here the module get the currency well

The Postfields send to another page that are located on public_html/ gateway.php

The problem that im facing in on that file gateway.php on that fle I have

?php
use WHMCS\ClientArea;
use WHMCS\Database\Capsule;
use WHMCS\ModuleApi\ModuleApiCall as ModuleApiCall;
use WHMCS\ModuleApi\GatewayVars as GatewayVars;

define('CLIENTAREA', true);
$baseDir = realpath(__DIR__);
if (file_exists(__DIR__ . '/init.php')) {
    require_once __DIR__ . '/init.php';
}
if (file_exists(__DIR__ . '/includes/gatewayfunctions.php')) {
    require_once __DIR__ . '/includes/gatewayfunctions.php';
}
if (file_exists(__DIR__ . '/includes/invoicefunctions.php')) {
    require_once __DIR__ . '/includes/invoicefunctions.php';

global $whmcs;
global $_LANG;

On that file i want get the Client currency it, i have tried, but not sucess, on that file im able to get the $gatewayParams the paratemers fields of the Gateway

$currency = $whmcs->get_req_var('currency');
$clientcurrency = $params['clientdetails']['currency'];

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated