You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Is there a way to create a new payment option? I want to offer Google Checkout by email invoice as an option during the checkout process.
I'm thinking something similar to the payment option of 'Call for credit card information'. Has anyone tried this?
Thanks,
Cyndi
Offline
Okay, I finally found where to create a new payment option: ClickCartPro > Commerce: Orders and Checkout > Manage Processing Gateways.
I cloned the 'Contact Customer' gateway, and gave it a new ID (gcoinv) and Gateway Name (Google Checkout Invoice), but when I did a test order and selected this payment option, the order process failed and displayed this error message:
An error was encountered while processing the information submitted. Please try again.
Guess I'll go try to figure out how to run debug...
Cyndi
Offline
I ran debugger, but I have no clue what to look for in the output files.
Should I post the files here? Debug created two temp files and they are LONG.
Cyndi
Offline
dh783 wrote:
The new payment method needs a script by the same name used in it's id field which reside in the private_dir/khxc/CCP_OLP/ext which is what get pulled and acted on.
John
I found the payment scripts in {private}/apps/ccp0/CCP_OLP/ext. Can I just copy the script that is used for the Contact Customer payment gateway (nopay.php), and rename it to go with my Google Checkout Invoice gateway?
I'm looking at the script now, and I guess I'll have to rename all instances of 'CCP_OLP_nopay' within the script?
Obviously, I'm not a programmer...
Thanks,
Cyndi
Offline
Yes you would need to change the nopay part to what you placed as the id for your new gateway, bassically you need to update the Class Defination and Constructor Function part.
John
Offline
Cool - that was easy! Edit/Find/Replace and it was done!
Thanks, John!
Cyndi
Offline