Jump to content

Custom Payment moudle not showing in checkout page

Recommended Posts

Hello community members,


I have been pulling my hair since past 2-3 hours . I am creating a payment module . I have created it and it is installing well and i can configure the module setting. But when i install it i cannot see the payment method in the checkout page. I tried by googling with many keywords but i am not able find the appropriate answer. The module get installed and module can be transplanted in displayment hook but it doesn't show up in the checkout page.  Any suggestion are appreciated. 


P.s.  I have checked all the payment restriction and  every thing is fine .


Thank you  

Share this post

Link to post
Share on other sites

Thank you for you reply . 

Yes, i have checked that . Every(currencies,group,country) restriction  is checked there . i.e. mine custom module is available for every restriction. Is there any other issue ?

Share this post

Link to post
Share on other sites

Here is the __construct method 
public function __construct()
$this->name = 'mypayment';
$this->tab = 'payments_gateways';
$this->version = '1.0.0';
$this->author = 'DrudgeRajen';
$this->need_instance = 0;
$this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); 
$this->mypayment_available_currencies = array('USD','AUD','CAD','EUR','GBP','NZD');
    $this->bootstrap = true;
$this->displayName = $this->l('mypaymentmodule');
$this->description = $this->l('mypayment  gateway for Nepal..');
$this->confirmUninstall = $this->l('Are you sure you want to uninstall?');
$this->warning = $this->l('No name provided.');
//Requires includes
require_once(dirname (__FILE__) . "/includes/tools.php");


And in hookPayment method : 


public function hookPayment($params)
// echo "tst";exit;
$mypayment = mypayment_tools::getRow();
$mypayment_action_url = $mypayment['test_url'];
$mypayment_action_url = $mypayment['live_url'];
'mypayment_action_url' => $mypayment_action_url,
'merchant_service_code' => $mypayment['merchant_service_code']
// 'mypayment_success_url' => $this->context->link
return $this->display(__FILE__, 'standard.tpl');
when i install the module and transplant the hook, it doesn't echo any thing inside this hookpayment method. Can you  please give me any idea for debugging it ??
Edited by Drudge (see edit history)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More