Payeezy v0.1.1 Payeezy.TestHelpers
Summary
Functions
Creates a Bypass listener to act as a double for the actual Payeezy GiftCard API endpoint
Simulates that the provided Bypass listener is not accepting connections
Functions
Creates a Bypass listener to act as a double for the actual Payeezy GiftCard API endpoint
purchase_failure_missing_cc_response_string()
purchase_failure_missing_cc_response_string() :: String.t
simulate_balance_inquiry_and_purchase_insufficient_funds(bypass, balance)
simulate_balance_inquiry_and_purchase_insufficient_funds(any, String.t) :: no_return
simulate_balance_inquiry_and_purchase_success(bypass, balance)
simulate_balance_inquiry_and_purchase_success(any, String.t) :: no_return
Simulates that the provided Bypass listener is not accepting connections
simulate_service_response(bypass, status, body, fun)
simulate_service_response(any, Plug.Conn.status, String.t, (Plug.Conn.t -> boolean)) :: no_return