Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Payment method - new module tutorial
 
redpen
Sr. Member
 
Total Posts:  239
Joined:  2008-01-23
 

OK, now I’m stuck at the ‘place order’ stage - it just pops up a window that says ‘Undefined’ and doesn’t place the order.  Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
[m] zentrale
Guru
 
Avatar
Total Posts:  401
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

do you use firefox browser? and for firefox the plugin firebug? with these plugin you can see the responce code of the ajax which is used in onepage checkout.
If this message pops up there is smth wrong with the return of the ajax request. maybe a excetion was thrown.

And once more, iv added my paymentmodule for Credit Card to this post, take a look at it.

cheers

Stefan

File Attachments
Hpcc.zip  (File Size: 8KB - Downloads: 233)
 Signature 

Account-User: S. Bothner & A. Jaus
[m] zentrale | InternetAgentur Stuttgart & München
Agentur für Beratung, Entwicklung & Marketing.
Magento™ Silver Partner & Community Pro Member
----
Ich habe Visionen - muss ich jetzt zum Arzt?

 
Magento Community Magento Community
Magento Community
Magento Community
 
redpen
Sr. Member
 
Total Posts:  239
Joined:  2008-01-23
 
-

zentrale” date="1206039539"]Hi,

do you use firefox browser? and for firefox the plugin firebug? with these plugin you can see the responce code of the ajax which is used in onepage checkout.
If this message pops up there is smth wrong with the return of the ajax request. maybe a excetion was thrown.

And once more, iv added my paymentmodule for Credit Card to this post, take a look at it.

Hi again.  Installed Firebug, get a similar response as to before you fixed it last time:

<pre>

<
strong>Warning:</strong> <i>include(Protx\Request.php[<a href='function.include'>function.include

</
a>]failed to open streamNo such file or directory</iin <strong>C:\xampp\htdocs\magento\app\code

\core\Mage\Core\functions
.php</strongon line <strong>44</strong><br/>[0] in <strong>__autoload</strong

>() in <strong>C:\xampp\htdocs\magento\app\code\core\Mage\Core\functions.php</strongon line <strong

>44</strong><br/>[1] in <strong>__autoload</strong>("Protx_request")<br/>[2] in...

Any ideas?

I will check out your code, but really wanted ProTX to be working.

 
Magento Community Magento Community
Magento Community
Magento Community
 
[m] zentrale
Guru
 
Avatar
Total Posts:  401
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

but this module you have installed is only a copy of existing authorizednet module which is standard in magento, only the name has changed and the url for request. Or is
protx the same in uk as authorizenet in usa? dont think so. you have to customize the code. Instead it will not authorize succesfull against protx.

Change code of Model Protx.php around line 225 from:

$request Mage::getModel('protx_request')

to

$request Mage::getModel('protx/protx_request')

Change code of Model Protx.php around line 317 from

$result Mage::getModel('protx_result')

to

$result Mage::getModel('protx/protx_result')

But as told, i dont think that this is functional protx module

cheers

Stefan

 Signature 

Account-User: S. Bothner & A. Jaus
[m] zentrale | InternetAgentur Stuttgart & München
Agentur für Beratung, Entwicklung & Marketing.
Magento™ Silver Partner & Community Pro Member
----
Ich habe Visionen - muss ich jetzt zum Arzt?

 
Magento Community Magento Community
Magento Community
Magento Community
 
redpen
Sr. Member
 
Total Posts:  239
Joined:  2008-01-23
 
-

zentrale” date="1206040706"]Hi,

but this module you have installed is only a copy of existing authorizednet module which is standard in magento, only the name has changed and the url for request. Or is
protx the same in uk as authorizenet in usa? dont think so. you have to customize the code. Instead it will not authorize succesfull against protx.

Thanks once again.  Changed the code, different error but still an error!  I don’t know if it’s fully working code until the author responds I suppose.  Was just hopeful that he was nearly there.

Thanks for your help, I’ll abandon the project for today and hopefully get further next week, as I can’t get my head around this at all…

 
Magento Community Magento Community
Magento Community
Magento Community
 
[m] zentrale
Guru
 
Avatar
Total Posts:  401
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

as told, this is not a protx payment module. this module is authorizednet module of magento core where only the name has changed.

cheers

Stefan

 Signature 

Account-User: S. Bothner & A. Jaus
[m] zentrale | InternetAgentur Stuttgart & München
Agentur für Beratung, Entwicklung & Marketing.
Magento™ Silver Partner & Community Pro Member
----
Ich habe Visionen - muss ich jetzt zum Arzt?

 
Magento Community Magento Community
Magento Community
Magento Community
 
bolasevich
Jr. Member
 
Total Posts:  15
Joined:  2008-03-04
 

[m] is correct.. it only labled it protx.. cause im working on one. It was more or less a template so others could build off it.. i found the tutorial to be confusing and it took me several hours to figure out to just get the module to show up in magento let alone work. So i offered that template for others who are trying to build any type of payment module not just protx. Althought when i finish mine i will let you know redpen

Scott

 
Magento Community Magento Community
Magento Community
Magento Community
 
redpen
Sr. Member
 
Total Posts:  239
Joined:  2008-01-23
 
bolasevich - 20 March 2008 07:53 AM

[m] is correct.. it only labled it protx.. cause im working on one. It was more or less a template so others could build off it.. i found the tutorial to be confusing and it took me several hours to figure out to just get the module to show up in magento let alone work. So i offered that template for others who are trying to build any type of payment module not just protx. Althought when i finish mine i will let you know redpen

Scott

I see, thank you.  Yeah, it’s all very confusing!

 
Magento Community Magento Community
Magento Community
Magento Community
 
oldwolfrexy
Jr. Member
 
Total Posts:  1
Joined:  2008-03-21
 

after customer order check out by my module, i goto admin, create invoice, but i don’t see credit memo. Please help me about refund (sorry for my bad English)
this is my config.xml
<config>
<modules>
<Mage_MZHeidelpay>
<version>0.0.1</version>
<depends>
<Mage_Sales />
</depends>
</Mage_MZHeidelpay>
</modules>
<global>
<models>
<mzheidelpay>
<class>Mage_MZHeidelpay_Model</class>
<resourceModel>mzheidelpay_mysql4</resourceModel>
</mzheidelpay>
<mzheidelpay_mysql4>
<class>Mage_MZHeidelpay_Model_Mysql4</class>
<entities>
<mzheidelpay_debug><table>mzheidelpay_mzheidelpay_debug</table></mzheidelpay_debug>
</entities>
</mzheidelpay_mysql4>
</models>
<resources>
<mzheidelpay_setup>
<setup>
<module>Mage_MZHeidelpay</module>
</setup>
<connection>
<use>core_setup</use>
</connection>
</mzheidelpay_setup>
<mzheidelpay_write>
<connection>
<use>core_write</use>
</connection>
</mzheidelpay_write>
<mzheidelpay_read>
<connection>
<use>core_read</use>
</connection>
</mzheidelpay_read>
</resources>
</global>

<adminhtml>
<translate>
<modules>
<Mage_MZHeidelpay>
<files>
<default>Mage_MZHeidelpay.csv</default>
</files>
</Mage_MZHeidelpay>
</modules>
</translate>
</adminhtml>

<frontend>
<translate>
<modules>
<Mage_MZHeidelpay>
<files>
<default>Mage_MZHeidelpay.csv</default>
</files>
</Mage_MZHeidelpay>
</modules>
</translate>
</frontend>

<default>
<payment>
<!-- liste des differentes sous methodes de paiement -->
<mzheidelpay>
<!-- valeurs par defaut des champs dans la partie admin -->
<active>1</active> <!-- mode de paiement enabled ou disabled?-->
<debug>0</debug>
<cctypes>AE,VI,MC</cctypes>
<cgi_url>https://secure.authorize.net/gateway/transact.dll</cgi_url>
<model>mzheidelpay/mzheidelpay</model>
<order_status>1</order_status>
<payment_action>authorize</payment_action>
<merchant_id>MerchantID</merchant_id>
<title>SecurePayTech</title>
<allowspecific>0</allowspecific>
</mzheidelpay>

</payment>
</default>
</config>
and
in Mzheidelpay.php define
protected $_isGateway = true;
protected $_canAuthorize = true;
protected $_canCapture = true;
protected $_canCapturePartial = true;
protected $_canRefund = true;
protected $_canVoid = true;
protected $_canUseInternal = true;
protected $_canUseCheckout = true;
protected $_canUseForMultishipping = true;

 
Magento Community Magento Community
Magento Community
Magento Community
 
Fluxsoap
Jr. Member
 
Avatar
Total Posts:  7
Joined:  2008-03-13
Lithuania
 

you talking about big things. but i want to ask small thing about, how to make simple module:

who takes this payment method:
https://www.webtopay.com/macro_specification.html

 Signature 

The Art Of Photography - http://www.flux.lt

 
Magento Community Magento Community
Magento Community
Magento Community
 
bendtsen
Jr. Member
 
Total Posts:  12
Joined:  2007-09-23
 

Hi, Im trying to create payment method but Im currently stuck at the Place order part. I use firebug and this is the response I get:
Array

(

[0] => _DATA=Array

[1] => _ORIGDATA=

[2] => _IDFIELDNAME=

[3] => _ISDELETED=

)

{"success”:false,"error”:true,"error_messages":"There is an error in placing an order. Please try again

later or contact the store owner."}

Any help is appreciated

 
Magento Community Magento Community
Magento Community
Magento Community
 
Goldfish
Jr. Member
 
Total Posts:  5
Joined:  2008-03-27
 

Hopeing to save some time =)
We need a very basic payment method, it’s actually the “Check / Money order” option with one addon, an extra charge for the customer.

Is it possible to modify “Check / Money order” or duplicate it with this addon? Does anyone have this ready, can create it or can guide me in the right direction I would be so ever greatful. Going through the examples and the hassle with external API seems unnesassary.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bendtsen
Jr. Member
 
Total Posts:  12
Joined:  2007-09-23
 

Hi, I have successfully created a payment method for at danish gateway and I have edited the config.xml so more card types can be selected. But where do I add validation of the new cards? Any hints?

 
Magento Community Magento Community
Magento Community
Magento Community
 
franky999
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2008-04-01
Netherlands
 

Could someone who got this down please update the wiki page, so we don’t have to browse this thread looking for hints? smile

 Signature 

Frank - Webfauna
http://www.webfauna.nl

 
Magento Community Magento Community
Magento Community
Magento Community
 
koyan
Jr. Member
 
Total Posts:  14
Joined:  2008-02-28
 
franky999 - 08 April 2008 12:44 AM

Could someone who got this down please update the wiki page, so we don’t have to browse this thread looking for hints? smile

seconded

does anyone have any idea as to when the wiki will be updated, now 1.0 is released and stable etc…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
53278 users|775 users currently online|107382 forum posts