debutpre 0 Posted October 10, 2009 Posted October 10, 2009 Can anyone help to create the moduleCashU payment. Here are the site CashU I found a guide to incorporate into my site. the guide thank you. Share this post Link to post Share on other sites
Roozbeh Aghabeighi 3 Posted April 30, 2010 Posted April 30, 2010 Hi dears I need Cashu payment modul too. thanks. Share this post Link to post Share on other sites
Roozbeh Aghabeighi 3 Posted May 2, 2010 Posted May 2, 2010 Step by Step ;-) Step 1 :( a part of paypal's module i edited it ) <?php class Cashu extends PaymentModule { private $_html = ''; private $_postErrors = array(); public function __construct() { $this->name = 'cashu'; $this->tab = 'Payment'; $this->version = '0.1'; $this->currencies = true; $this->currencies_mode = 'radio'; parent::__construct(); /* The parent construct is required for translations */ $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('Cashu'); $this->description = $this->l('Accepts payments by Cashu'); $this->confirmUninstall = $this->l('Are you sure you want to delete your details ?'); Share this post Link to post Share on other sites
Roozbeh Aghabeighi 3 Posted May 2, 2010 Posted May 2, 2010 There is a " Oscommerce's " module for Cashu payment option. cashu.php 1 Share this post Link to post Share on other sites
Roozbeh Aghabeighi 3 Posted May 2, 2010 Posted May 2, 2010 For install Paypal : public function install() { if (!parent::install() OR !Configuration::updateValue('PAYPAL_BUSINESS', 'paypal@prestashop.com') OR !Configuration::updateValue('PAYPAL_SANDBOX', 1) OR !$this->registerHook('payment') OR !$this->registerHook('paymentReturn')) return false; return true; } Protx : public function install() { if (!parent::install() OR !Configuration::updateValue('VSP_DIRECT_MODE', 'simulator') OR !Configuration::updateValue('VSP_Validate_billing', '0') OR !Configuration::updateValue('VSP_DIRECT_CURRENCY', 1) OR !Configuration::updateValue('VSP_DIRECT_AVSCV2', 1) OR !Configuration::updateValue('VSP_DIRECT_ThreeDSecure', 0) OR !Configuration::updateValue('VSP_DIRECT_VENDOR_NAME', 'test') OR !Configuration::updateValue('VSP_DIRECT_VENDOR_EMAIL', 'root@localhost') OR !Configuration::updateValue('VSP_DIRECT_TXTYPE', 'PAYMENT') OR !$this->registerHook('payment') OR !$this->registerHook('paymentReturn')) return false; return true; } Share this post Link to post Share on other sites
Roozbeh Aghabeighi 3 Posted May 2, 2010 Posted May 2, 2010 For uninstall Paypal: public function uninstall() { if (!Configuration::deleteByName('PAYPAL_BUSINESS') OR !Configuration::deleteByName('PAYPAL_SANDBOX') OR !parent::uninstall()) return false; return true; } Protx : public function uninstall() { if (!Configuration::deleteByName('VSP_DIRECT_MODE') OR !Configuration::deleteByName('VSP_Validate_billing') OR !Configuration::deleteByName('VSP_DIRECT_CURRENCY') OR !Configuration::deleteByName('VSP_DIRECT_AVSCV2') OR !Configuration::deleteByName('VSP_DIRECT_ThreeDSecure') OR !Configuration::deleteByName('VSP_DIRECT_VENDOR_NAME') OR !Configuration::deleteByName('VSP_DIRECT_VENDOR_EMAIL') OR !Configuration::deleteByName('VSP_DIRECT_TXTYPE') OR !parent::uninstall()) return false; return true; } Share this post Link to post Share on other sites
Roozbeh Aghabeighi 3 Posted May 2, 2010 Posted May 2, 2010 According to Cashu integration guide we should fill :1: merchant_id2: amount3: currency4: language5: display_text6: txt17: token8: test_modeso i think that output code can be :install : public function install() { if (!parent::install() OR !Configuration::updateValue('merchant_id') OR !Configuration::updateValue('amount') OR !Configuration::updateValue('currency') OR !Configuration::updateValue('language') OR !Configuration::updateValue('display_text') OR !Configuration::updateValue('txt1') OR !Configuration::updateValue('token') OR !Configuration::updateValue('test_mode', 1') OR !$this->registerHook('merchant_id') OR !$this->registerHook('amount') OR !$this->registerHook('currency') OR !$this->registerHook('language') OR !$this->registerHook('display_text') OR !$this->registerHook('txt1') OR !$this->registerHook('token') /* Accepted values are: “1” for the test mode and “0” for the live mode. */ OR !$this->registerHook('test_mode', 1') return false; return true; } Share this post Link to post Share on other sites
Roozbeh Aghabeighi 3 Posted May 2, 2010 Posted May 2, 2010 For uninstall : public function uninstall() { if (!Configuration::deleteByName('merchant_id') OR !Configuration::deleteByName('amount') OR !Configuration::deleteByName('currency') OR !Configuration::deleteByName('language') OR !Configuration::deleteByName('display_text') OR !Configuration::deleteByName('txt1') OR !Configuration::deleteByName('token') OR !Configuration::deleteByName('test_mode') OR !parent::uninstall()) return false; return true; } Share this post Link to post Share on other sites
Roozbeh Aghabeighi 3 Posted May 2, 2010 Posted May 2, 2010 Below is a description of optional parameters that cashU provides for Merchants to include any datarelated to the payment transaction and needed to be passed to the Return URL ( according to Cashu integration guide ) Share this post Link to post Share on other sites
DevSpry.com 0 Posted April 9, 2011 Posted April 9, 2011 HiPrestaShop cashU payment module created.Please check this post Share this post Link to post Share on other sites
test12345 0 Posted June 19, 2012 Posted June 19, 2012 Hi PrestaShop cashU payment module created. Please check this post I tried to contact your store. But no one replied my msg. I'm interested in CashU module. Share this post Link to post Share on other sites
Recommended Posts