Kryptronic Software Support Forum

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.

#1 09-13-2008 06:38:57

posnpretty
Member
From: Kentucky
Registered: 05-04-2008
Posts: 130
Website

Create a custom payment option?

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

 

#2 09-13-2008 14:59:29

posnpretty
Member
From: Kentucky
Registered: 05-04-2008
Posts: 130
Website

Re: Create a custom payment option?

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

 

#3 09-13-2008 15:44:37

posnpretty
Member
From: Kentucky
Registered: 05-04-2008
Posts: 130
Website

Re: Create a custom payment option?

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

 

#4 09-13-2008 15:57:25

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Create a custom payment option?

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

Offline

 

#5 09-13-2008 16:25:52

posnpretty
Member
From: Kentucky
Registered: 05-04-2008
Posts: 130
Website

Re: Create a custom payment option?

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

 

#6 09-13-2008 16:39:52

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Create a custom payment option?

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

 

#7 09-13-2008 17:58:31

posnpretty
Member
From: Kentucky
Registered: 05-04-2008
Posts: 130
Website

Re: Create a custom payment option?

Cool - that was easy! Edit/Find/Replace and it was done!

Thanks, John!

Cyndi

Offline

 

Board footer