On this page, you can find additional configuration for adding Napas card to your Components integration.
Before you begin
This page assumes you have already:
You don't need to send additional fields for Napas card. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:
- /sessions: This is the default with Components v5.0.0 or later.
- /payments: If you implemented an additional use case.
If your integration uses iOS Components v5.0.0 or later, configure and create an instance of the Napas card Component:
//Create a payment method object for Napas card. let paymentMethod = paymentMethods.paymentMethod(ofType: momo_atmComponentPaymentMethod.self) //Create a configuration object for the Napas card Component. var momo_atmComponentConfiguration = momo_atmComponent.Configuration() //Set additional parameters on the configuration object. momo_atmComponentConfiguration.localizationParameters = //Optional custom localization parameters.
There is no required Napas card specific integration for Components.
Test and go live
To test Napas card payments, select any bank from the list and use the following test cards and credentials:
|Scenario||Card name||Card number||Expiry||One-time password|
|Successful||Nguyen Van A||9704000000000018||03/07||otp|
|Card blocked||Nguyen Van A||9704000000000026||03/07||otp|
|Insufficient funds||Nguyen Van A||9704000000000034||03/07||otp|
|Amount exceeded limit||Nguyen Van A||9704000000000042||03/07||otp|
Check the status of Napas card test payments in your Customer Area > Transactions > Payments.
Before you can accept live Napas card payments, you need to submit a request for Napas card in your live Customer Area.