MomoapiElixir.Collection (momoapi_elixir v0.1.0) View Source

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Get the balance of the account

This method is used to retrieve transaction information. You can invoke it at intervals until your transaction fails or succeeds

Callback implementation for GenServer.init/1.

This operation is used to request a payment from a consumer (Payer). The payer will be asked to authorize the payment. The transaction will be executed once the payer has authorized the payment. The requesttopay will be in status PENDING until the transaction is authorized or declined by the payer or it is timed out by the system. Status of the transaction can be validated by using the GET /requesttopay/<resourceId>

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Get the balance of the account

Link to this function

get_transaction_status(reference_id)

View Source

This method is used to retrieve transaction information. You can invoke it at intervals until your transaction fails or succeeds

Callback implementation for GenServer.init/1.

This operation is used to request a payment from a consumer (Payer). The payer will be asked to authorize the payment. The transaction will be executed once the payer has authorized the payment. The requesttopay will be in status PENDING until the transaction is authorized or declined by the payer or it is timed out by the system. Status of the transaction can be validated by using the GET /requesttopay/<resourceId>

%{ amount: "50", currency: "EUR", externalId: "123456", payer: %{

partyIdType: "MSISDN",
partyId: "46733123450"

}, payerMessage: "testing", payeeNote: "hello" }