Skip to content

boolfly/zalopay

Repository files navigation

Boolfly ZaloPay Wallet for Magento 2

Read more about Zalopay: https://fintechnews.sg/10595/vietnam/vietnams-zalo-pay-brings-payments-social-media/

Installation

Using Composer (we recommended)
composer require boolfly/module-zalopay

Configuration

Setup Currency

First of all, we need to make sure our website supporting Vietnamese Dong.

Log in to Admin, STORES > Configurations > GENERAL > Currency Setup > Currency Options > Allowed Currencies. Make sure the Vietnamese Dong is selected.

Zalopay Wallet currency

Go to Currency Rates, STORES > Currency > Currency Rates

Zalopay Wallet currency

Config API

Log in to Admin, STORES > Configurations > SALES > Payment Methods > Zalopay

Zalopay Wallet Configuration

Read more here:

After registering Zalo Pay system will see the application the following information:

  • appid : positive integer, identifier for the application during the payment process with Zalo Pay system.
  • key1 : secret key used to create authentication data for orders
  • key2 : the secret key used to authenticate data sent by ZaloPayServer via MerchantServer at callback.

Configuration info to integrate with MoMo API.

  • Enabled: enable or disable this method.
  • App Id: Use the info above.
  • Key 1: Use the info above.
  • Key 2: Use the info above.
  • App User: Identification information of the user of the payment order application: id / username / name / phone number / email of the user. If it is not identifiable, the default information can be used, such as the application name.
  • Sandbox Mode: when testing, we should enable this mode

How does it work?

Checkout

After enabling this method, go to the checkout, we can see this method.

Zalopay Wallet Checkout

Zalopay Payment page:

Zalopay Payment page

Purchased Successfully

Zalopay Payment page

Contribution

Want to contribute to this extension? The quickest way is to open a pull request on GitHub

Support

If you encounter any problems or bugs, please open an issue on GitHub.

Need help settings up or want to customize this extension to meet your business needs? Please email boolfly.inc@gmail.com and if we like your idea we will add this feature for free or at a discounted rate.