=======
AsiaPay
=======
`AsiaPay `_ is an online payments provider established in Hong Kong and
covering several Asian countries and payment methods.
.. _payment_providers/asiapay/configure_dashboard:
Configuration on AsiaPay Dashboard
==================================
#. Log into AsiaPay Dashboard according to the account provided by AsiaPay.
- `PayDollar `_: For markets in HK,
CN, MO, TW, SG, MY, IN, VN, NZ and AU
- `PesoPay `_: For market in PH
- `SiamPay `_: For market in TH
- `BimoPay `_: For market in ID
#. Go to :menuselection:`Profile --> Account Information`. Copy the values of the
:guilabel:`Currency` and :guilabel:`Secure Hash` fields and save them for later.
#. | Go to :menuselection:`Profile --> Payment Account Settings` and enable the option
:guilabel:`Return Value Link (Datefeed)`;
| Enter your Odoo database URL followed by `/payment/asiapay/webhook` in the
:guilabel:`Return Value Link (Datefeed)` text field. For example:
`https://yourcompany.odoo.com/payment/asiapay/webhook`;
| Click on :guilabel:`Test` to check if the webhook is working correctly.
#. Click on :guilabel:`Update` to finalize the configuration.
.. _payment_providers/asiapay/configure_odoo:
Configuration on Odoo
=====================
#. :ref:`Navigate to the payment provider AsiaPay ` and change its state
to :guilabel:`Enabled`.
#. | In the :guilabel:`Credentials` tab, choose the :guilabel:`Brand` of your Asiapay account. Then
fill in the :guilabel:`Merchant ID` and :guilabel:`Secure Hash Secret`, and the
:guilabel:`Currency` in the :guilabel:`Configuration` tab with the values you saved at the
step :ref:`payment_providers/asiapay/configure_dashboard`;
| By default, the payment provider AsiaPay is configured to verify the secret hash with the hash
function `SHA1`. If a different function is :ref:`set on your account
`, activate the :ref:`developer mode
` and set the same value to the field :guilabel:`Secure Hash Function` in the
:guilabel:`Credentials` tab.
#. Configure the rest of the options to your liking.
.. seealso::
- :doc:`../payment_providers`