Run Ubercart (Drupal Module) in Test Gateway mode without SSL?
I'm writing a module for Ubercart that hooks the checkout completed phase of purchasing. However I'm running into an issue actually running any tests.
My original plan was to use the Test Gateway for development, then push out this module onto production with Paypal and Google Checkout as payment gateways. Once I get it going I can afford an SSL certificate.
However right now I don't have an SSL certificate, and this is preventing Test Gateway from running since it depends on the Credit Card Module, which requires SSL. Surprisingly the debug mode option doesn't change this requirement.
At the top of every page I get an ominous warning:
Checkout cannot be completed without any payment methods enabled. Please contact an administrator to resolve the issue.
And at the top of the Payment Settings page I get:
Credit card encryption must be configured to accept credit card payments.
Is there any way to force the Credit Card module to work in debug mode wit开发者_开发技巧hout SSL?
If you enable "Test Gateway", go here http://YOURSITE/admin/store/settings/payment/edit/methods (Administer › Store administration › Configuration › Payment settings)
Expand "Credit card settings", in "Card number encryption key filepath" enter path outside of your site. "
On "Accepted card types" select any credit card. And investigate more settings there.
Now try buy some product, and checkout it, select card for payment, it will automatically complete order (full payment imitation).See testing numbers for credit cards, CVV can be any number, enter higher Expiration date than current date.
Use sandboxes for testing Paypal and Google Checkout for testing these "gates".
精彩评论