Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Early in the course I showed you how to accept payments through PayPal, because well, let's face it: that's pretty much the entry-level standard online. But if you plan to accept a lot of payments, or if what you're selling for some reason doesn't fit into any of PayPal's payment plans, then you'll need something heavier duty. This video introduces you to some of those payment methods, besides PayPal, and it goes through the full process with authorize.net, which is common in the U.S. First, let's take a look at what's available. To do so, go to drupalcommerce.org, and click Add-ons.
Once there, you can sort it by Module Type. As you scroll down, you see that there are a lot of payment methods available: Adyen, Authorize.net, and so forth. We are going to use Authorize.net. As with all payment gateways, there are two parts to using it. First, you get the module, and install it. Second, you need to get authorization from the payment processor itself. Fortunately for us, Authorize.net gives out test accounts for us to play with. No money actually gets transferred.
It's just so that you can learn their system. I found it by searching on Google, for Authorize.net test account, and there it is; the first link right there. The same works for many other payment methods. For example, Moneris test account, or CyberSource test account. Very easy to find. I've already signed up for a test account, so now we're ready to go. All I have to do is grab the module, and install it. Go down here, it opens a new window, scroll down, and install in the usual way. We then enable it.
Like most commerce contributed modules, it's in the Commerce (Contrib) group. Enable it, scroll down, and save the configuration. Now we configure it, just as we did with the PayPal module back in the video about accepting PayPal payments. Go up to Configure store, and Payment methods, and then enable your Authorize.net payment method this way. We confirm; yes. And the last step is to go back and edit it so that it has all of the information for your Authorize.net account.
Go down to Actions, and click edit. Scroll down, and here I will paste in some information that I got from my account. The next set of option is for Transaction Mode, and this takes a little bit of explanation. If you just got a developer account, as I did, you will want to do developer test account transactions. This has the lowest level of security, because no money is being transferred. There has never been any sort of authorization. If you've already signed up for Authorize.net, or whatever other payment processor you're using, you will be using one of the live account buttons. And of course, when you finally go online, and you want to actually receive the money, it'll be live transactions in a live account.
There some other settings, but we can just scroll down and save. That's pretty much it. Now let's see it in action by making a purchase. We go back to our front page, and we will put something in our cart, and go through the usual process. View the cart, there it is, checkout, scroll down, and fill out the usual information. Then when it comes time to review our order, we see there is an extra option under payment. We could, of course, do our earlier payments, but let's go ahead with Credit card.
I am going to enter a standard void credit card number. It's a 4, followed by twelve 2s: 4222222222222. Expiration will be sometime in the future, and for Security code, we can put any three digit number. Then we continue. Success! Just with the PayPal payment, or any other payment method, you can look at the order to get payment details. To do that, go up to View orders, and there it is; number 6. Let's go in and edit it. Click the Payment tab, and there you have it.
It gives you all of the information that went out to Authorize.net and came back, including an ID. Now I want to remind you that the system I showed you here using a test account doesn't actually get you paid. For that, you have to go through quite a bit of paperwork with the payment service provider of your choice, so don't expect to set up your site today, and get paid tomorrow. Now, Authorize.net is one of only many, many payment processors, but there are others for which there still isn't a module available. The only way to know whether your preferred payment method is available is to look for it on drupalcommerce.org.
If it isn't, don't give up hope. Drupal Commerce is open-source software, which means that anybody could make it better, including you, or if you're not a programmer, you could pay someone to create the payment module that you need. The programming interface is very open, and well-documented. That makes it easier for developers to work with, so you might be surprised at just how reasonable the price is to get exactly the payment module that you need.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 74065 Viewers
80 Video lessons · 129503 Viewers
52 Video lessons · 63827 Viewers
59 Video lessons · 49598 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.