Solved

Add Custom Credit Card Fields to WooCommerce Checkout page to replace Payment Gateways

Posted on 2013-06-06
13
1,716 Views
Last Modified: 2013-06-07
I'm working on a site where the client doesn't want payment processing to be handled online but rather for the user to submit their credit card data (via SSL of course) and then payment to be handled manually later.

I'm not very familiar with Woocommerce so I'm stumped.  All I've been able to do so far is turn off the existing payment gateways but I don't see where I can add custom credit card field elements.  Since I'm not using a payment gateway, custom addons for credit card gateways aren't all that helpful.

But I need to be able to add a custom field with a drop down menu to indicate Visa, Mastercard, American Express or Discover, A field for the name on the card, a field for the card number, expiration date field (two drop down menus for month and year) and a field for the security number on the back of the card.

I need it so that when the user submits the order, that information is emailed to the client and a notification comes up letting them know that their order has been submitted and to expect a call from a representative of the site.

Can anyone help?

Thank you!
0
Comment
Question by:Power_Pro
  • 6
  • 6
13 Comments
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
So you want to store the CC details on your site - if so bear in mind that you usually have to go through a stringent procedure PCI-DSS to avoid backlash of your DB being hacked.
0
 

Author Comment

by:Power_Pro
Comment Utility
Not stored...forwarded.  But if stored, I'd need to ensure security of course.  The point is to have the page work as though someone were filling out a form and faxing it but in this case, the information would be forwarded online.

Possible?
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
Forwarded - to where? By Email?
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
You'll fail PCI compliance if you use email to transmit payment information.  You'll also fail PCI compliance if you do not transmit everything behind SSL.  It's complicated and the banking community has spent a fair amount of time, effort and money coming up with the correct guidelines.  You really want to follow their guidelines!  Start your learning adventure here:
http://en.wikipedia.org/wiki/PCI_compliance

Here is what I would do.  After you're thoroughly familiar with PCI, get the client and his banker together.  Have a plain-language discussion about how best to transmit the financial information.  Have the client explain his reasons for not wanting online payments (they may be perfectly legitimate or they may be grounded in ignorance). The banker will undoubtedly need some advance notice so he can have his technical and legal advisors available for a conference call.  Hash out all the details, memorialize the conversation with countersignatures on all copies of the notes.  Then come back to EE if you still have questions about the design of a compliant system.

Or just use PayPal ;-)
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
Another option is that many payment gateways provide an authorisation service - where the client's cc details are captured but no money is taken from the account. A manual transaction can then be processed when you need to.
0
 

Author Comment

by:Power_Pro
Comment Utility
Okay I just talked to the client and they're okay with not having credit card info transmitted given the complications.

So, what that means is I still need to customize WooCommerce to allow for an order to be captured, ie, the users information and what items they want... with a notice that payment will be handled via phone later.

https://bonzosfireworks.com/

Orders are not going to be shipped... it's all home delivery.  It's very local :D  So only orders from the state are allowed because they don't know the laws with regard to their merchandise in other states.  

So I need to add a promo code field, a state tax field, remove shipping and allow for an order to be accepted without a payment portal.

Do I need to start a new question or is this still substantively similar to the original concept?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
If the plugin does not handle this natively then you will need to customize it - which would require hiring someone - it is a bit too broad for this forum.
0
 

Author Comment

by:Power_Pro
Comment Utility
It might actually handle it natively.

It has a testing feature right, that doesn't complete a transaction but logs the info (address, amount ordered, etc)?  That's actually all I need here.
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
If that works for you but the question still remains - how is payment going to be made - will this be handled telephonically after the fact?

If so it sounds like you are trying to get a payment gateway to do the work of an online ordering system - i.e. order submission without payment. Most cart solutions will by default want to terminate in a payment of some kind - so this would be going against what is required.
0
 

Author Comment

by:Power_Pro
Comment Utility
Actually I want to skip payment gateway entirely if that's at all possible.
0
 

Author Comment

by:Power_Pro
Comment Utility
Can I configure it to auto validate without a payment gateway?  That would be an acceptable solution.
0
 

Author Comment

by:Power_Pro
Comment Utility
I figured it out.  I set the Payment Gateway as COD and then edited the details so that the order would process.
0
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 500 total points
Comment Utility
Actually I want to skip payment gateway entirely if that's at all possible.

That is what I was referring to - you are wanting to take a cart / ecommerce tool and make it do something it was not designed to do.

In terms of your second question - validating without a PG - well that is what the PG does.

Typically your PG has 3 options (Payment, Deffered or Authenticate) - usually an authenticate is done in all cases - basically the PG checks the CC details with the bank to see if the card is valid - then depending on the option you select either debits the clients account immediately (payment) or just marks the transaction as authenticated and returns a positive to your site.

We use the Authenticate option a lot as our client has to by law send goods within a certain time of debiting the account - which is not always possible so they authenticate - this keeps the CC details on record with the PG and when the order is ready to go they go into the backend for the PG and initiate the transaction.

This is what I was referring to as a possible solution in an earlier post.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now