# Connect MoMo

Take payments from the MoMo e-wallet: register a MoMo business account, register your IPN URL, then add the partner code and keys in Commerce.

Source: https://support.rework.com/article/commerce-connect-momo

> **In plain words:** **MoMo** is a Vietnamese e-wallet. Customers pay in the MoMo app and Commerce marks the record paid when MoMo confirms. MoMo gives you a **partner code**, an **access key** and a **secret key**. You give MoMo an **IPN URL**, where MoMo reports each payment. New to the payment words used here? See [Payment accounts](https://support.rework.com/article/commerce-payment-accounts) and [Commerce basics](https://support.rework.com/article/commerce-basics).

**Where to find it:** Commerce > left icon rail > **Settings** > **Accounts & integrations** > **Payment accounts**. **Who can use it:** workspace admins.

## Before you start

- A merchant account with MoMo. Register at [business.momo.vn](https://business.momo.vn) and complete their contract and checks.
  
- A payment service in Commerce. See [Services](https://support.rework.com/article/commerce-services).
  
- Records priced in VND. This provider only takes VND.
  

## Register your IPN URL with MoMo

1. In Commerce, open **New account** > **MoMo** and click **View guideline**.
   
2. Copy the **IPN URL**.
   
3. In the MoMo business portal, register it as your default IPN URL. Commerce also sends it with every payment, but the portal should hold it too.
   

MoMo's developer guide is at [MoMo Developers](https://developers.momo.vn/).

## Get your credentials

From the MoMo business portal, copy your **partner code**, **access key** and **secret key**.

## Add the account in Commerce

1. In Commerce, click **Settings** at the bottom of the left icon rail. Under **Accounts & integrations**, click **Payment accounts**.
   
2. Click **New account**. The **New payment account** dialog opens.
   
3. Under **Payment gateways**, click **MoMo**. The form **New MoMo account** opens.
   
4. Type a **Name** your team will recognise, for example "MoMo main".
   
5. Fill in the fields from the steps above. For MoMo these are **Partner code**, **Access key** and **Secret key**, all required.
   
6. Optionally add **Owners**: people who are not admins but may manage this account.
   
7. Click **Create account**. The account appears in the table with the status **Enabled**.
   

![The New MoMo account form](https://storage.googleapis.com/reworkv3-public/success/261011/pr76chFi9BO7K7kKzUGlDUPQQOZQtyVf2iS9CtATOcHiSSMDa5HHOyVbXsK6Ob0H/img.5RFqXwdasJ8Pw9XAYVjAJQOy4xppAfgGQzf7t2h1TaAqGzJ4WH2hBKwVoX4IKWUj.png)

Secret fields are hidden after saving. The table shows only their last four characters. To change one later, open the account with **Edit** and type the new value. Leave a secret blank to keep the stored one.

> **Note:** The subtitle at the top of **Payment accounts** says **Live environment** or **Sandbox environment**. Use the provider's live keys in a live workspace and its test keys in a sandbox workspace.

## Let customers pay with it

An account does nothing until a **Payment service** uses it. A payment service is the folder of payments that your quotes, orders and invoices collect through. See [Payment accounts](https://support.rework.com/article/commerce-payment-accounts) for how the pieces fit.

1. Click **Payment** in the left icon rail, then the payment service in the sidebar.
   
2. Click **Service settings** at the bottom of the sidebar.
   
3. Under **Operations**, click **Payment accounts**.
   
4. Turn on **Online gateways** if it is off, then tick your **MoMo** account.
   
5. Click **Save payment accounts**.
   

## What your customer sees

When a customer clicks **Pay** on a quote, invoice or payment link, they see **Pay with MoMo** and a **Pay** button with the amount. A note explains that they are taken to MoMo's own secure page, so their card or wallet details never reach your workspace.

After paying they return to a page that says "Waiting for the payment result" and then **Payment received**. MoMo confirms the payment to Commerce in the background, and the invoice or quote shows as paid. Each attempt is listed under **Payment** > **Checkouts**. See [Online checkouts](https://support.rework.com/article/commerce-checkouts).

## Limits to know

- VND only. MoMo accepts amounts from 1,000 to 50,000,000 VND per payment.
  
- Test and live credentials are separate. Use the ones that match your workspace.
  

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

The payment is refused for a large amount

 | 

MoMo's limit is 50,000,000 VND per payment

 | 

Split the amount with a payment plan, or offer a bank transfer

 |
| 

The customer pays but the record stays unpaid

 | 

MoMo cannot reach your IPN URL

 | 

Check the IPN URL registered in the MoMo portal

 |
| 

The provider is not offered at checkout

 | 

The account is not attached to the payment service, or it is **Disabled**

 | 

Tick it under **Online gateways** in the service's **Payment accounts** settings, and check its status is **Enabled**

 |
| 

A field shows "Stored ••1234, leave blank to keep."

 | 

The secret is saved and hidden on purpose

 | 

Leave it blank to keep it, or type a new value to replace it

 |
