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.
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:
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.