Are you looking for test card numbers?

Would you like to contact support?

No momento, esta página não está disponível em português
Payment-method icon

MoMo Redirect Component

Add MoMo to your existing iOS Components integration.

On this page, you can find additional configuration for adding MoMo to your Components integration.

Before you begin

This page assumes you have already:

API reference

You don't need to send additional fields for MoMo. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:

Component configuration

If your integration uses iOS Components v5.0.0 or later, configure and create an instance of the MoMo Component:

//Create a payment method object for MoMo.
let paymentMethod = paymentMethods.paymentMethod(ofType: momo_walletComponentPaymentMethod.self)
//Create a configuration object for the MoMo Component.
var momo_walletComponentConfiguration = momo_walletComponent.Configuration()
//Set additional parameters on the configuration object.
momo_walletComponentConfiguration.localizationParameters = //Optional custom localization parameters.

There is no required MoMo-specific integration for Components.

Recurring payments

MoMo supports recurring transactions. To make recurring transactions, you need to:
  1. Create a shopper token.
  2. Use the token to make future payments for the shopper.

Create a token

To create a token, include in your /payments request:

  • storePaymentMethod: true
  • shopperReference: Your unique identifier for the shopper.

When the payment has been settled, you receive a webhook containing:

  • originalReference: The pspReference of the initial payment.
  • pspReference: This is the token that you need to make recurring payments for this shopper.

Make sure that your server is able to receive RECURRING_CONTRACT as part of your standard webhooks. You can enable the RECURRING_CONTRACT event code in the webhook settings page.

Make a payment with a token

To make a payment with the token, include in your /payments request:

  • paymentMethod.storedPaymentMethodId: The pspReference from the RECURRING_CONTRACT webhook.

    You can also get this value by using the /listRecurringDetails endpoint.

  • shopperReference: The unique shopper identifier that you specified when creating the token.

  • shopperInteractionContAuth

  • recurringProcessingModel: Use Subscription for a series of transactions following a fixed time interval or UnscheduledCardOnFile for contracts with non-fixed time interval.

Test and go live

To make MoMo payments in the test environment:

  1. Download the MoMo test app for iOS or Android at If you're testing on a mobile browser, you see a link to download the test app. If you're testing on a desktop browser, use the test app to scan the QR code.
  2. Use MoMo's test credentials to log in to the test app. MoMo provides different credentials depending on the scenario that you want to test (for example, failed scenarios).

Check the status of MoMo test payments in your Customer Area > Transactions > Payments.

Before you can accept live MoMo payments, you need to submit a request for MoMo in your live Customer Area.

See also