Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I add a second Test gateway to wp-e-commerce payment options? I need one for cash-on-delivery and a second for Bank-Transfer. A similar question was asked at wp-e-commerce plugin - custom payment option but the answer does not cover this issue.

share|improve this question

1 Answer 1

I just copied the testmode.merchant.php file (plugins/wp-e-commerce/wpsc-merchants). Renamed it (in my case mynewgateway.merchant.php) and changed name, class_name, display_name and form in the first array.

Then changed the class name on line 29 (just changing test to mynewgateway, same as above), the name variable on line 31 and at last the form function name on line 42.

Works for me and my new gateway was added automatically in the gateway list on the Payments page.

You might want to do some more editing (comments and such) in the new PHP file though for your needs.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.