English | [简体中文](./readme-zh-CN.md)

# DFOXM MugglePay For WooCommerce
> MugglePay is a one-stop payment solution for merchants with an online payment need.

## Installation

### From WordPress.org

This plugin is available on the [WordPress.org plugin repository], and can be installed either directly from there or from the admin dashboard within your website.

#### Within your WordPress dashboard
1. Visit ‘Plugins > Add New’
2. Search for ‘DFOXM MugglePay For WooCommerce’
3. Activate DFOXM MugglePay For WooCommerce from your Plugins page.

#### From WordPress.org plugin repository
1. Download DFOXM MugglePay For WooCommerce from <https://wordpress.org/plugins/dfoxm-mugglepay-for-woocommerce>
2. Upload to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
3. Activate DFOXM MugglePay For WooCommerce from your Plugins page.

### From this repository

Within the Github repository, click the Clone or Download button and Download a zip file of the repository, or clone it directly via command line.

Within your WordPress administration panel, go to Plugins > Add New and click the Upload Plugin button on the top of the page.

Alternatively, you can move the zip file into the `wp-content/plugins` folder of your website and unzip.

You will then need to go to your WordPress administration Plugins page, and activate the plugin.

## Configuring DFOXM MugglePay For WooCommerce

You will need to set up an account on [[DFOXM MugglePay For WooCommerce](https://merchants.mugglepay.com/user/register?ref=MP9237F1193789)].

Within the WordPress administration area, go to the WooCommerce > Settings > Payments page and you will see MugglePay in the table of payment gateways.

Clicking the Manage button on the right hand side will take you into the settings page, where you can configure the plugin for your store.

**Note: If you are running version of WooCommerce older than 3.4.x your MugglePay tab will be underneath the WooCommerce > Settings > Checkout tab**

## Settings

### Enable / Disable

Turn the MugglePay payment method on / off for visitors at checkout.

### Title

Title of the payment method on the checkout page

### Description

Description of the payment method on the checkout page

### API Key

Register your MugglePay merchant accounts with your invitation code and get your API key at [Merchants Portal](https://merchants.mugglepay.com/user/register?ref=MP9237F1193789). You will find your API Auth Token (API key) for authentication. [MORE](https://merchants.mugglepay.com/user/register?ref=MP9237F1193789)

![Setting Page](https://i.loli.net/2021/07/11/nHpNEWaLMsc9vd2.png)

## Prerequisites

To use this plugin with your WooCommerce store you will need:

* [WordPress] (tested up to 5.7.6)
* [WooCommerce] (tested up to 4.7.1)


## License

This project is licensed under the Apache 2.0 License

## Changelog

## 1.0.5 ##
1. Fixed: Undefined array key "mpwp"
2. Update: Support Custom style

## 1.0.4 ##
1. Tested up to WordPress 5.7.6
2. Change Plugin Name

## 1.0.3 ##
1. Tested up to WordPress 5.7.6

## 1.0.2 ##
* Support Cron Job Check payment statuses on orders and update order statuses.

## 1.0.1 ##
* DFOXM MugglePay For WooCommerce