Class: Pay::FakeProcessor::Merchant
- Inherits:
-
Merchant
- Object
- ApplicationRecord
- Merchant
- Pay::FakeProcessor::Merchant
- Defined in:
- app/models/pay/fake_processor/merchant.rb
Instance Method Summary collapse
- #account_link(refresh_url:, return_url:, type: "account_onboarding", **options) ⇒ Object
- #create_account(**options) ⇒ Object
- #login_link(**options) ⇒ Object
Methods inherited from Merchant
Instance Method Details
#account_link(refresh_url:, return_url:, type: "account_onboarding", **options) ⇒ Object
10 11 12 |
# File 'app/models/pay/fake_processor/merchant.rb', line 10 def account_link(refresh_url:, return_url:, type: "account_onboarding", **) Struct.new(:url).new("/fake_processor/account_link") end |
#create_account(**options) ⇒ Object
4 5 6 7 8 |
# File 'app/models/pay/fake_processor/merchant.rb', line 4 def create_account(**) fake_account = Struct.new(:id).new("fake_account_id") update(processor_id: fake_account.id) fake_account end |
#login_link(**options) ⇒ Object
14 15 16 |
# File 'app/models/pay/fake_processor/merchant.rb', line 14 def login_link(**) Struct.new(:url).new("/fake_processor/login_link") end |