If you choose to sell your products and services online with WooCommerce, you have to make a crucial decision that can directly affect your online sales: which WooCommerce payment gateway should you choose? Since a payment gateway plays a vital role in your ecommerce, it can be a difficult decision to make. I can help you understand how it works, how to choose the best WooCommerce gateways, and the different factors to consider when choosing the right options for your business and especially for your customers.
Steps to Enable or Disable Payment Gateway for a Specific User Role
- Log into your WordPress site and access the Dashboard as the admin user.
- From the Dashboard menu, click on Appearance Menu > Theme Editor Menu. When the Theme Editor page is opened, look for the theme functions file to add the function to enable PayPal for admin only.
- Add the following code to the php file:
add_filter( 'woocommerce_available_payment_gateways', 'gomahamaya_paypal_enable_manager' );
function gomahamaya_paypal_enable_manager( $available_gateways ) {
if ( isset( $available_gateways['paypal'] ) && ! current_user_can( 'manage_woocommerce' ) ) {
unset( $available_gateways['paypal'] );
}
return $available_gateways;
}
- Alternatively, if you want to disable Paypal for the admin, add the following code to the php file:
add_filter( 'woocommerce_available_payment_gateways', 'gomahamaya_paypal_disable_manager' );
function gomahamaya_paypal_disable_manager( $available_gateways ) {
if ( isset( $available_gateways['paypal'] ) && current_user_can( 'manage_woocommerce' ) ) {
unset( $available_gateways['paypal'] );
}
return $available_gateways;
1. Amazon Pay
With Amazon Pay, you can offer your customers a payment option through your Amazon account. Only your email address and password are usually required for account validation. While it is, of course, mandatory to have an active Amazon account, no other condition you will face. The major advantage is that you donβt need to enter payment information on the third-party website. Amazon stands out as an important intermediary between a customer and an online store. The end-user has no charge for creating and using his account.
2. Apple Pay
Apple Pay is initially a payment service for mobile devices. However, it is only available to users of new products launched by Apple. The payment service was initially based on NFC technology, i.e., near-field communication, for the iPhone. It is possible to offer your customers to purchase with Apple Pay not just in online stores but also in physical shops. However, it is also possible to make integrated purchases in certain applications, for example, Airbnb, Starbucks, or Kickstarter.
3. PayPal Pro
PayPal is one of the oldest payment platforms on the Internet, and because of that, it is everywhere. The bottom line is simple: it is a one-stop online gateway for payments. Users give them access to all the credit cards, bank accounts, and addresses they want, and they are ready to shop at your store. In many ways, PayPal has become the de facto way to pay on the Web. In most cases, people can choose between payments by credit card or PayPal. Which, for you, means that your customers probably already have a PayPal account. Therefore, they press a button to pay, and you get your money and their address and all the other relevant information here and there.
4. PayPal by Braintree
Founded in 2007, Braintree is a very simple way to provide online payment to your users. Braintree overcomes the problem of multiple sellers with the ability to split payments. Braintree protects your data, complying with the Payment Card Industry (PCI-DSS) security standard. This WooCommerce payment gateway also has an advanced fraud detection system that protects you and your users from any threat of this kind. Finally, Braintree is practical, consistent, and innovative in the sense that you can migrate whenever you want. You can leave with all your confidential data because these are your property here.
Reference Blog
Best WooCommerce Payment Gateways For WordPress
Top comments (0)