Affirm v0.1.2 Affirm.TestHelpers
Link to this section Summary
Functions
Creates a Bypass listener to act as a double for the actual Affirm API endpoints
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 Affirm API endpoints
Simulates that the provided Bypass listener is not accepting connections
Link to this function
simulate_service_response(bypass, status, body, fun)
Link to this function
successful_authorization_response_string(amount, order_id \\ nil)
Link to this function
successful_capture_response_string(amount, fee)
Link to this function
successful_read_response_string()
successful_read_response_string() :: String.t()
Link to this function
successful_refund_response_string(amount, fee_refunded)
Link to this function
successful_void_response_string()
successful_void_response_string() :: String.t()