Payeezy v0.1.3 Payeezy.TestHelpers
Link to this section 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
Link to this section Functions
Creates a Bypass listener to act as a double for the actual Payeezy GiftCard API endpoint
Link to this function
purchase_failure_insufficient_funds(purchase_amount)
Link to this function
purchase_failure_missing_cc_response_string()
purchase_failure_missing_cc_response_string() :: String.t
Link to this function
simulate_balance_inquiry_and_purchase_insufficient_funds(bypass, balance)
simulate_balance_inquiry_and_purchase_insufficient_funds(any, String.t) :: no_return
Link to this function
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
Link to this function
simulate_service_response(bypass, status, body, fun)
simulate_service_response(any, Plug.Conn.status, String.t, (Plug.Conn.t -> boolean)) :: no_return
Link to this function
successful_balance_inquiry_response_string(current_balance)
Link to this function
successful_purchase_response_string(purchase_amount, current_balance, previous_balance)
Link to this function
successful_refund_response_string(refund_amount)
Link to this function
successful_void_response_string(void_amount)