Moshe can the tutorial for payment module be used to create a module for paypal IPN (web standard)? Is it worth bothering with now or should we wait till you guys release one yourselves in the next update?
@lorenzo01: can you elaborate in what way it doesn’t function? error messages?
there is no message error, but the module ‘NewModule” does not appears in the section payment method in the backend....however I applied the tutuorial strictly....i’ve did’nt saw in my database the newmodule…
hello,
does the file mysql4-install-0.1.0.php function with MySQL 5.0.32 ?
because the installation of this new payment module does not function with me
Same for me, I’m also using MySQL 5.
I have followed the tutorial strictly, but the new payment module doesn’t appear.
Ok, found the problem… The wiki article has been updated..
So here are updates:
The code was tested on trunk with updates that didn’t make it in last release..
in app/code/local/Mage/NewModule/etc/config.xml right after </setup> line add:
<!-- specify database connection for this resource --> <connection> <!-- do not create new connection, use predefined core setup connection --> <use>core_setup</use> </connection>
This is for test gateway response:
in app/code/local/Mage/NewModule/Model/PaymentMethod.php in function _authorize add:
Also there was a fix in app/code/core/Mage/Payment/Model/Paygate/Result.php:
replace Mage_Paygate_Model_Authorizenet_Result with Mage_Payment_Model_Paygate_Result.
After the module is installed in Admin / System / Config / Payment Methods / New Module:
* Enabled: for all checkout types
* Order Status: Pending
* Sort Order: 9
Same problem exists, the new payment module doesn’t show up in the admin page.
No errors at all. Maybe you can post the exact copy of your files, so we can try those out?
Maybe we are doing something wrong.
@Moshe, I just tried it out. I uploaded all the files and changed the other files exactly as you described.
I went to admin/configuration/Payment Methods.......... and nothing......
There is no new Payment module showing.
Make sure you exactly follow the path to store the new files, as they have changed since the tutorial.
Among other things, the directory NewModule under app/code/local/Mage became NewPayment
Also, I think the files Moshe attached in the forum are missing the ?> PHP ending tag. This applies for the PHP files in the WIKI tutorial as well.