AtEx v0.20.21 AtEx.Gateway.Payments.Bank.Validate View Source
This module holds the implementation for the HTTP Gateway that runs calls against the Africas Talking Bank Trabsfer Validation API
Link to this section Summary
Functions
Bank checkout validation APIs allow your application to validate bank checkout charge requests.
Process results from calling the gateway
Link to this section Types
Link to this type
option()
View Sourceoption() :: {:method, Tesla.Env.method()} | {:url, Tesla.Env.url()} | {:query, Tesla.Env.query()} | {:headers, Tesla.Env.headers()} | {:body, Tesla.Env.body()} | {:opts, Tesla.Env.opts()}
Link to this section Functions
Bank checkout validation APIs allow your application to validate bank checkout charge requests.
Parameters
attrs: - a map containing transactionId
and otp
see the docs at https://build.at-labs.io/docs/payments%2Fbank%2Fvalidate for how to use these keys
Example
iex>AtEx.Gateway.Payments.Bank.Validate.bank_validate(%{transactionId: "ATPid_a58b61dc2bf556ff9c4b16e9f6e40795", otp: "password"})
{:ok,
%{
"status" => "Success",
"description" => "Payment completed successfully"
}}
Process results from calling the gateway