Displaying the accepted credit cards

Every credit card has a different transaction fee. Many credit cards charge around 2 percent, but some cards such as American Express can charge 4 or 5 percent. For this reason, some retailers only accept certain cards through their payment gateway. If you don't allow one of those cards, it's best to tell the customer that ahead of time.

If you support every credit card, you still can show the customer a list of supported cards. They'll be more likely to convert knowing that you support their credit card.

How to do it…

There is a plugin that does exactly this. It allows you to select exactly which cards you support. In the following steps, we install this plugin and display the list of cards accepted for payment purposes:

  1. In the WordPress admin, click on the Plugins menu and then on Add New.
  2. Run a search for the WooCommerce Accepted Payment Methods plugin.
  3. Install and activate the plugin.

    Now that we have installed the plugin, we need to configure the settings.

  4. Go to WooCommerce | Settings | Checkout.
  5. Scroll down to the Accepted Payment Methods section.
  6. Check all of the credit cards that apply.
    How to do it…
  7. Click on Save changes.

    We've determined which credit cards we accept. Now we need to display that on the frontend. We'll be doing this by using a widget that comes bundled with the WooCommerce Accepted Payment Methods plugin.

  8. From the WordPress admin, go to Appearance | Widgets.
  9. Click on WooCommerce Accepted Payments from the Available Widgets area and select the widget area where you would like to place it.
    How to do it…
  10. Click on Add Widget.
  11. If you like, you can change the title of the widget.
    How to do it…
  12. Click on Save.

If you visit the frontend of your site, you should see the list of accepted payment methods.

How to do it…

There's more...

Displaying the list of accepted payment methods in a widget is just one way to display them. You could also use a shortcode to display them on a page or a template tag to place it anywhere in your theme. You can find out the exact syntax by reading the WooCommerce Accepted Payment Methods plugin's documentation on WordPress.org.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset