WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by Mark Kaplun, Pieter Goosen, cybmeta, birgire, kaiser Dec 4 '14 at 16:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

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

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