View Source AtEx.Gateway.Payments.Bank.Validate (AtEx v0.20.23)
This module holds the implementation for the HTTP Gateway that runs calls against the Africas Talking Bank Trabsfer Validation API
Summary
Functions
Bank checkout validation APIs allow your application to validate bank checkout charge requests.
Process results from calling the gateway
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