Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
Page 17 of 17
Payment method - new module tutorial
 
kiatng
Guru
 
Total Posts:  352
Joined:  2008-09-03
Kuala Lumpur, Malaysia
 

@Kevin Pattison Moshe’s wiki is an essential guide to creating your own Payment Module. For a demo, look for Andrej BankPrepayment Module in Magento Connect. I was able to create a customized Payment Method using these. Good luck.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bluent
Jr. Member
 
Total Posts:  8
Joined:  2009-05-13
 

Hi All,

I successfully added a new payment module.

I now need to pass values to the external gateway, however I am unable to figure what files to modify and what code to add to achieve this.

I need to send the amount, order id and a bunch of other values to an external URL when I click Place Order.

I have been struggling for 2 days, please help!!!!!

Thanks in advance

 
Magento Community Magento Community
Magento Community
Magento Community
 
ekric
Jr. Member
 
Total Posts:  1
Joined:  2009-06-09
 

Hi Everybody.

I created a new Payment Module using the tutorial. Works as described, but:

I want to create custom form fields in die Frontend, with which I can enter the Payment Information. Can anybody tell me how to configure a text field an label it for my Custom Payment Method?

Thanks
Eric

 
Magento Community Magento Community
Magento Community
Magento Community
 
Charles Albert
Member
 
Total Posts:  56
Joined:  2008-06-24
 

Hey, @Kevin Pattison. I was having the same problem of the module not showing up in the Payment Methods section of the site, when trying to create a module based on the tutorial. After 2 days with no success, i decided to make that module, i mean, just copy and paste, and worked! Turned out that the name of folder inside the codepool (folder CompanyName on the example) NEEDS to start with a capital letter, as well as the module folder (folder NewModule in the example). Then when applying it on my customised module that was just based in the example (and not a exact copy), it also worked well… Yes, i’ve lost two days because of a single damn capital letter… Ces’t là vie…

Hope this was of any help…

 Signature 

Charles Albert Martins dos Anjos
Gerente de Desenvolvimento - qu4troC
Especialistas Joomla! - Magento - Moodle - dotProject

 
Magento Community Magento Community
Magento Community
Magento Community
 
Paul Morris
Member
 
Total Posts:  37
Joined:  2009-05-06
 

Thx Mωϋσῆς , You guys always do terific things!!!!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
jjvinoth
Jr. Member
 
Total Posts:  2
Joined:  2009-04-29
 

In cc payment method when i click place order one alert box will come and its show the error msg like this(There was an error processing your order. Please contact us or try again later.) I used php codings that libfuncs.php3.redirecturl.php3,checkout.php3. In that what should i need to write extra coding to rectify error and get success result. In that Merchant_Id,Amount,Order_Id,Merchant_Param,Checksum,AuthDesc, need table name for this database, i want to get success message , can u send the successive process step by step.

File Attachments
redirecturl.php  (File Size: 3KB - Downloads: 38)
 
Magento Community Magento Community
Magento Community
Magento Community
 
jjvinoth
Jr. Member
 
Total Posts:  2
Joined:  2009-04-29
 

t7iuo

 
Magento Community Magento Community
Magento Community
Magento Community
 
PIrzad Jeelani
Jr. Member
 
Total Posts:  2
Joined:  2009-08-12
 

Hello Moshe,

Thanks for all ur posts. Im a newbie to magento and have few issues. I recently downloaded Sapegay paayment module (formerly PROTX) and it shows in admin panel. But I dunno if it manages the inventory itself when the transaction is done with Successful acknowledgment i.e updating product quantity et al in the databse after returning to the SUCCESS URL. I also tried to configure it on ma localhost and there is an entry VENDOR, please let me know that using this module does the user gets redirected to the sagepay site after add to cart action or he stays on our site.

Sorry to disturb much LOL .......

But I have one more issue, I installed Royalmail shipment module on ma localhost.  However I came to know from Royallmail people that it works off the track i.e, there are statically fixed shipment charges inside module files and it adds them to net toal on checkout page. However Im scared that why does not it use their API and talk to Royalmail Server in realtime mode.
Can u plz let me know if it gets upgraded and gets latest rates et al.

Thanking in advance

 
Magento Community Magento Community
Magento Community
Magento Community
 
yogeshs
Jr. Member
 
Total Posts:  1
Joined:  2009-09-03
 
Moshe - 03 October 2007 05:53 PM

Hi all,

Here’s small tutorial on creating a payment module:
http://www.magentocommerce.com/wiki/how-to/create-payment-method-module

It shows basic technics of creating a generic module and also some specific API for payment modules.

Let me know if there’s anything to clarify or improve smile

Thank you.

Hello,
I followed your tutorial.
But I dont understand how do I pass variable and its values (like some hidden variables ,field name as required for my payment gateway) while checkout etc.
Can you please shade a light on this?
If I try to use default code then I am getting msg saying “There was an error processing your order.Please try again”.
I will really appreciate if anyone could help me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
creativelifeform
Member
 
Avatar
Total Posts:  65
Joined:  2009-06-22
Sydney, Australia
 

wow seems like EVERYONE is having the same issues as each other...maybe its time for a more detailed tutorial on this topic admins?

 
Magento Community Magento Community
Magento Community
Magento Community
 
vagustolga
Jr. Member
 
Total Posts:  2
Joined:  2009-09-16
 

I’m having problems with my custom module. I have it running correctly in the configuration->advanced and in Payment Modules. No problems there. But it gives this error when I click the Checkout button.

config settings:
Company name: Tlgsoft
Module name: Ykbpos

I used community/Tlgsoft/Ykbpos/ folder

My class name in community/Tlgsoft/Ykbpos/Model/Ykbpos.php:
class Tlgsoft_Ykbpos_Model_Ykbpos extends Mage_Payment_Model_Method_Abstract

Why doesn’t it look for my module in my folder but in “Mage/” folder?

Warning: include(Mage/Ykbpos/Model/Ykbpos.php[function.include]failed to open streamNo such file or directory  in /home/steripen/public_html/lib/Varien/Autoload.php on line 101
Trace
:
#0 /home/steripen/public_html/lib/Varien/Autoload.php(101): mageCoreErrorHandler(2, 'include(Mage/Yk...', '/home/steripen/...', 101, Array)
#1 /home/steripen/public_html/lib/Varien/Autoload.php(101): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload('Mage_Ykbpos_Mod...')
#3 /home/steripen/public_html/app/code/core/Mage/Core/Model/Config.php(1084): spl_autoload_call('Mage_Ykbpos_Mod...')
#4 /home/steripen/public_html/app/Mage.php(319): Mage_Core_Model_Config->getModelInstance('Mage_Ykbpos_Mod...')
#5 /home/steripen/public_html/app/code/core/Mage/Payment/Helper/Data.php(75): Mage::getModel('ykbpos/ykbpos', Array)
#6 /home/steripen/public_html/app/code/core/Mage/Payment/Block/Form/Container.php(117): Mage_Payment_Helper_Data->getStoreMethods('ykbpos/ykbpos')
#7 /home/steripen/public_html/app/code/core/Mage/Payment/Block/Form/Container.php(44): Mage_Payment_Block_Form_Container->getMethods('1', Object(Mage_Sales_Model_Quote))
#8 /home/steripen/public_html/app/code/core/Mage/Core/Block/Abstract.php(199): Mage_Payment_Block_Form_Container->_prepareLayout()
#9 /home/steripen/public_html/app/code/core/Mage/Core/Model/Layout.php(445): Mage_Core_Block_Abstract->setLayout()
#10 /home/steripen/public_html/app/code/core/Mage/Core/Model/Layout.php(229): Mage_Core_Model_Layout->addBlock(Object(Mage_Core_Model_Layout))
#11 /home/steripen/public_html/app/code/core/Mage/Core/Model/Layout.php(195): Mage_Core_Model_Layout->_generateBlock('Mage_Checkout_B...', 'checkout.paymen...')
#12 /home/steripen/public_html/app/code/core/Mage/Core/Model/Layout.php(196): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#13 /home/steripen/public_html/app/code/core/Mage/Core/Model/Layout.php(196): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#14 /home/steripen/public_html/app/code/core/Mage/Core/Model/Layout.php(200): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#15 /home/steripen/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(303): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#16 /home/steripen/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(231): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#17 /home/steripen/public_html/app/code/core/Mage/Checkout/controllers/OnepageController.php(137): Mage_Core_Controller_Varien_Action->loadLayout()
#18 /home/steripen/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Checkout_OnepageController->indexAction()
#19 /home/steripen/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch()
#20 /home/steripen/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match('index')
#21 /home/steripen/public_html/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#22 /home/steripen/public_html/index.php(65): Mage::run()
#23 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jonas Kudrna
Jr. Member
 
Total Posts:  10
Joined:  2009-03-16
 

Hi,

I went through all the steps in the tutorial and sucesfully got to point when see the module in backend. But when trying to use it in frontend for payment I am unable to see/use it. Anybody could help me please? I am using Magento ver. 1.3.2.2. thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
vij
Sr. Member
 
Total Posts:  81
Joined:  2009-02-13
 

Please check here http://ebizmarts.com/sagepay-modules-for-magento-updated , they have updated the SagePay Modules to sort out the TEST and SIMULATOR connectivity issues.

so go and update ur old sagepay module and enjoy

thanks to ignacio to inform me about update of sagepay module

enjoy

vij

 
Magento Community Magento Community
Magento Community
Magento Community
 
SAFETYPAY
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2009-06-11
Miami
 
Moshe - 03 October 2007 05:53 PM

Hi all,

Here’s small tutorial on creating a payment module:
http://www.magentocommerce.com/wiki/how-to/create-payment-method-module

It shows basic technics of creating a generic module and also some specific API for payment modules.

Let me know if there’s anything to clarify or improve smile

Thank you.

Hello Moshe....

i see that has much experience in Magento, could help me with my question about of layouts?

thanks in advance.

My question in detail is publish here:
http://www.magentocommerce.com/boards/viewthread/15175/#t199918

I hope to have your help....

Bye Bye friend

Juan Siesquen R.

Image Attachments
Magento_Confirmation.PNG
 
Magento Community Magento Community
Magento Community
Magento Community
 
hyserure
Jr. Member
 
Total Posts:  17
Joined:  2009-10-06
 

Does anyone have a working TransFirst payment module that they are willing to share with me? I appreciate your help.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 17 of 17
 
© Copyright 2010 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
195663 users|1381 users currently online|365758 forum posts