Magento Forum

   
Payment method - new module tutorial
 
Neuner
Jr. Member
 
Total Posts:  11
Joined:  2007-12-27
 

I have the same problem, using the latest Magento version (0.6.14100) and PHP 5.2.3.

I have tried with jsperri´s NewPayment.zip as well, but the problem persists.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Neuner
Jr. Member
 
Total Posts:  11
Joined:  2007-12-27
 

Works for me as well now. Had to do a new fresh Magento-installation (same version) and boom… smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
gremlin
Jr. Member
 
Total Posts:  4
Joined:  2007-12-11
 

pffff.... i ran out of walls to break my head onto.
Has anybody managed to POST data to a payment gateway in the checkout procedure, and present the client with the screen for the cc details? so far, as I managed to learn, it only goes by cURL and authorizes. What I need to do is POST the order data to an URL, and then come back based on the gateway return function.
Anybody?…

 
Magento Community Magento Community
Magento Community
Magento Community
 
FireIslandMan
Jr. Member
 
Total Posts:  10
Joined:  2007-12-20
 
gremlin - 31 December 2007 01:55 AM

pffff.... i ran out of walls to break my head onto.
Has anybody managed to POST data to a payment gateway in the checkout procedure, and present the client with the screen for the cc details? so far, as I managed to learn, it only goes by cURL and authorizes. What I need to do is POST the order data to an URL, and then come back based on the gateway return function.
Anybody?…

SAME PROBLEM HERE WITH AUTHORIZE.NET, ANYBODY GET IT TO WORK?
http://www.magentocommerce.com/boards/viewthread/834/

 
Magento Community Magento Community
Magento Community
Magento Community
 
martinkaiser
Jr. Member
 
Total Posts:  7
Joined:  2008-01-10
 

Hi!

I have got v0.7.14800 and tried jsperries ZIP and I almost tried everything but the new module is not showing up in the admin section.
In the tables core_config_data, core_config_field and core_resource are all entries made, so setup worked but it is not showing up.

Anyone has an idea?

Thank, Best Rgds,
Martin

 
Magento Community Magento Community
Magento Community
Magento Community
 
gremlin
Jr. Member
 
Total Posts:  4
Joined:  2007-12-11
 

i haven’t played with the new release, but i know in 0.6x there was an xml that that had the info for the modules
see here:

http://www.magentocommerce.com/boards/viewthread/832/P30/

 
Magento Community Magento Community
Magento Community
Magento Community
 
martinkaiser
Jr. Member
 
Total Posts:  7
Joined:  2008-01-10
 

Yeah, I already added the module in the file app/etc/local.xml

Still does not work

 
Magento Community Magento Community
Magento Community
Magento Community
 
derrick
Jr. Member
 
Total Posts:  1
Joined:  2008-01-12
 

I haven’t been able to get this working with the latest release either.

If time permits could someone please update the wiki page to reflect the Magento changes since it was written?

 
Magento Community Magento Community
Magento Community
Magento Community
 
martinkaiser
Jr. Member
 
Total Posts:  7
Joined:  2008-01-10
 

I got it working now but using a different approach - My configuration parameters are not in the sql but in config.xml and system.xml following the core modules examples.

Then at least I got the configuration parameters of my new module in Configuration->Payment->…
But then still the payment information in the checkout process was empty.

In my case the rootcause has been a missing DB entry in core_config_data the entry payment/methodname/module was missing (content ‘modulename/methodname’).

Now everything is working.

 
Magento Community Magento Community
Magento Community
Magento Community
 
gcoderre
Jr. Member
 
Total Posts:  12
Joined:  2007-08-31
Montreal, Quebec, Canada
 

Funny thing. I’m using 0.7.14800 and I tried to install the tutorial zipped files.

The files are in the right place (app/code/local/Mage/) and the following config has been added to app/etc/local.xml

<modules>
   <
Mage_HSBCCPI>
      <
active>true</active>
      <
codePool>local</codePool>
   </
Mage_HSBCCPI>
</
modules>

I can see the new module inside the admin panel under the “Advanced” tab, but not under “Payment Methods”. Fields were added to the db table “core_config_fields”, but not to “core_config_data”.

Any idea?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Aypok
Jr. Member
 
Total Posts:  1
Joined:  2008-01-24
Merry Old England
 
Guillaume Coderre - 19 January 2008 02:37 PM

Funny thing. I’m using 0.7.14800 and I tried to install the tutorial zipped files.

<snip>

I can see the new module inside the admin panel under the “Advanced” tab, but not under “Payment Methods”. Fields were added to the db table “core_config_fields”, but not to “core_config_data”.

I have exactly the same problem, but cannot figure out how to fix it. Has anyone come up with a solution?

 
Magento Community Magento Community
Magento Community
Magento Community
 
gcoderre
Jr. Member
 
Total Posts:  12
Joined:  2007-08-31
Montreal, Quebec, Canada
 

Actually, I got around that problem by following martinkaiser’s solution.
Declaring the config fields in system.xml rather than in the sql folder did the trick. I based my system.xml file on the one used by the paypal module.

One thing i’m not able to do, though, is to display the payment method on the frontend, and adding the entry payment/methodname/module in the table core_config_data does not help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
LapinLove404
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2007-11-04
 

I checked the paypal’s systems.xml and can relates some of the fields in there with the sql .php files. But I can’t figure the complete file.

Could we ahve a look at your system.xml ?

Actually, I got around that problem by following martinkaiser’s solution.
Declaring the config fields in system.xml rather than in the sql folder did the trick. I based my system.xml file on the one used by the paypal module.

Note: I’m using 0.7.15480

 
Magento Community Magento Community
Magento Community
Magento Community
 
LapinLove404
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2007-11-04
 

Yep,

Mixing the tutorial with the info found on http://www.fragento.org/index.php?option=com_fireboard&Itemid;=4&func;=view&id;=613&catid;=8 I am able of having my module enabled now.

But when loading the checkout page, I have the following error :

Fatal error: Class 'Mage_Payment_Model_Abstract' not found in

Did Mage_Payment_Model_Abstract changed name with the latest update ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Yes it is now called Mage_Payment_Model_Method_Abstract. Please take a look at other payment methods in latest version for ideas of implementation.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top