logo Mercanet

Release 24.2

go directly to content

Search by keywords

Good practices

To search in the page use Ctrl+F on your keyboard

In order to optimize the use of the platform and the response times, here are some good practices.

Use of the Mercanet wallet

When querying Mercanet for the contents of a wallet, we recommend caching the wallet contents to avoid using the getWalletData method for each payment or wallet management operation.

Use of getTransactionData in the absence of a response from Mercanet

If you do not receive a response from Mercanet for a transaction, you can use the getTransactionData method to find out the status of the transaction. However, wait a few minutes between your calls so as not to overwhelm Mercanet with requests if the platform is already in difficulty.

Use of the initialization with In-App

When you use several methods in a row requiring the same initialization method (e.g. getWalletData then addCard which both use the walletInitialize method), you don’t need to do an initialization between the two methods. Use the two methods in a row:

walletInitialize then getWalletData then addCard and not walletInitialize and getWalletData then walletInitialize and addCard.