- Connect to Backoffice of your shop with the available admin credentials.
- Go to Plugins > Add New on your WordPress site.
- Enter WooCommerce in the Search Plugins bar.
- Click Install Now and Activate.
- Once the installation is complete, we need to configure the WooCommerce as per the steps mentioned in https://docs.woocommerce.com/document/woocommerce-setup-wizard/
- Download the gateway-woocommerce-module plugin zip file from https://github.com/Mastercard-Gateway/gateway-woocommerce-module/releases and extract to the /wp-content/plugins/ directory, or
- Connect to Backoffice of your shop with the available admin credentials and install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress.
- Go to the WooCommerce backend settings page.
- Navigate to Payments tab, enable MPGS module and save changes then you are ready.
- Log into your WordPress Admin Panel. Then in the WordPress Admin Panel, select WooCommerce > Settings > Payments.
- Then for "MasterCard Payment Gateway Services" click on the "Manage" button
- It will open the configuration fields. Configure according to the requirement and click on the "Save Changes" button.
- Enable/Disable - Tick the checkbox to Enable it and display the Payment option in the frontend. Un-tick it to Disable it so it will not display in the frontend.
- Title - Insert the text which you want to display customer on the checkout page as "Payment Method Name". Example, "Credit Card / Debit Card".
- Description - Insert the Payment Method description text which you want to display customer on the checkout page under the Payment Method Name. Example, "Pay with your card via Mastercard".
- Gateway - The region that most transactions will originate from. Five options are available: Europe, Asia Pacific. North America, UAT and Custom URL.
- Custom Gateway Host - This option is available when the 'Gateway' option is set to 'Custom URL' and allows the module to be used with other gateways. Your Account Manager will tell you if this is needed or not.
- Transaction Mode - In "Purchase" mode, the customer is charged immediately. In Authorize mode, the transaction is only authorized, and the capturing of funds is a manual process that you have to do with the Woocommerce admin panel. The Manual capture process is explained in the next section.
- Payment Model - In "Hosted Checkout", customer will be redirected to the Mastercard for inserting the card details. In "Hosted Session", customer will need to insert the card details on the website only.
- Checkout Interaction - This option is available when the 'Payment Model' option is set to 'Hosted Checkout' and allows to choose redirection behavior to the Mastercard. Either in the "Lightbox" or "Redirect Payment Page".
- 3D-Secure - This option is available when the 'Payment Model' option is set to 'Hosted Session'. Tick the checkbox of "Use 3D-Secure" to Enable it. Be sure to Enable 3D-Secure in your Mastercard account. Un-tick it to Disable it.
- Saved Cards - This option is available when the 'Payment Model' option is set to 'Hosted Session'. Tick the checkbox of "Enable Payment via Saved Cards" to Enable it. If enabled, users will be able to pay with a saved card during checkout. Card details are saved on Mastercard servers, not on your store. Un-tick it to Disable it.
- Sandbox - Tick the checkbox of "Enable Sandbox Mode" to Enable it. If enabled, it places the payment gateway in sandbox mode using sandbox API keys (real payments will not be taken). Un-tick it to Disable it. If disabled, it will take the real payments.
- Merchant ID - Insert your account Merchant ID. Mastercard account: Settings > API Keys.
- Password - Insert your account Password. Mastercard account: Settings > API Keys.
- Edit the order in the admin. Path: Admin > WooCommerce > Orders > Edit Order
- On the right side of the order, you can open a dropdown menu and select “Capture Payment”. Just make sure it’s an authorized order (see Order Notes, right side of the order page), because the captured order won’t have this “capture” option.
- After selecting "Capture Payment" as option click on the "Update" button hence, it will capture the payment of this order.