UC Test Payment sample

This project is not covered by Drupal’s security advisory policy.

Introduction

I want to be able to test buying products on my live website, which uses Übercart. But I do not want to turn off the site (or even just the cart) while I'm doing that (at least not for hours at a time!)

There is a test mode in my gateway, but that means other users cannot use the gateway in the normal mode while I'm testing. There is also a Test gateway for the Credit Card payment method, but I have to choose between that Test gateway or my regular gateway... so either way users cannot purchase anything while I'm testing.

So?! What the heck??

Now there is the UC Test Payment module that let administrators (UID 1 and anyone in the role(s) that you authorize.) This works 100% in parallel with all the other existing payments and gateways.

Obviously, you should not let users other than the few who are working with you on your site access this payment method since it does not actually charge the users. It just looks like it.

At this point, the only option (other than the permission) is a drop down that lets you select the state of the new order. Thus, you can pretend that the order failed or was canceled... By default it will be set to Completed which makes sense to me (that's the same as a successful Credit Card charge.)

Let me know if you see other uses for this Übercart helper module.

Sponsor

Made to Order Software Corporation

Project information

Releases