You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This operation is used to request a payment from a consumer (Payer). The payer will be asked to authorize the payment. The transaction is executed once the payer has authorized the payment. The transaction will be in status PENDING until it is authorized or declined by the payer or it is timed out by the system. Status of the transaction can be validated by using `getTransaction`
This method is used to get the payment including status and all information from the request. Use the `transactionId` returned from `requestToPay`
81
+
1.`requestToPay(request: PaymentRequest): Promise<string>`: This operation is used to request a payment from a consumer (Payer). The payer will be asked to authorize the payment. The transaction is executed once the payer has authorized the payment. The transaction will be in status PENDING until it is authorized or declined by the payer or it is timed out by the system. Status of the transaction can be validated by using `getTransaction`
86
82
87
-
3.`getBalance(): Promise<Balance>`
83
+
2.`getTransaction(transactionId: string): Promise<Payment>`: Retrieve transaction information using the `transactionId` returned by `requestToPay`. You can invoke it at intervals until the transaction fails or succeeds. If the transaction has failed, it will throw an appropriate error. The error will be a subclass of `MtnMoMoError`. Check [`src/error.ts`](https://github.com/sparkplug/momoapi-node/blob/master/src/errors.ts) for the various errors that can be thrown
88
84
89
-
Get the balance of the account.
85
+
3.`getBalance(): Promise<Balance>`: Get the balance of the account.
Used to transfer an amount from the owner’s account to a payee account. Status of the transaction can be validated by using the
168
162
169
-
This method is used to get the transfer object including status and all information from the request. Use the reference id returned from `transfer`
163
+
2.`getTransaction(transactionId: string): Promise<Transfer>`: Retrieve transaction information using the `transactionId` returned by `transfer`. You can invoke it at intervals until the transaction fails or succeeds. If the transaction has failed, it will throw an appropriate error. The error will be a subclass of `MtnMoMoError`. Check [`src/error.ts`](https://github.com/sparkplug/momoapi-node/blob/master/src/errors.ts) for the various errors that can be thrown
170
164
171
-
3.`getBalance(): Promise<Balance>`
165
+
3.`getBalance(): Promise<Balance>`: Get your account balance.
This method is used to check if an account holder is registered and active in the system.
167
+
4.`isPayerActive(id: string, type: PartyIdType = "MSISDN"): Promise<string>`: This method is used to check if an account holder is registered and active in the system.
0 commit comments