Class: Workarea::Zipco::BogusGateway
- Inherits:
-
Object
- Object
- Workarea::Zipco::BogusGateway
- Defined in:
- lib/workarea/zipco/bogus_gateway.rb
Instance Method Summary collapse
- #authorize(attrs, request_id = nil) ⇒ Object
- #capture(attrs, request_id = nil) ⇒ Object
- #create_order(order) ⇒ Object
- #purchase(attrs, request_id = nil) ⇒ Object
Instance Method Details
#authorize(attrs, request_id = nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/workarea/zipco/bogus_gateway.rb', line 12 def (attrs, request_id = nil) if attrs[:authority][:value] == "timeout_token" Response.new(response(nil, 502)) else Response.new(response(capture_body)) end end |
#capture(attrs, request_id = nil) ⇒ Object
8 9 10 |
# File 'lib/workarea/zipco/bogus_gateway.rb', line 8 def capture(attrs, request_id = nil) Response.new(response(capture_body)) end |