Prevent Stripe-based payment methods that are not linked to a StripeAccount from displaying in the checkout

This commit is contained in:
Rob Harrington
2017-09-22 16:24:15 +10:00
parent 7ba99c0fe0
commit 90007d7114
3 changed files with 17 additions and 7 deletions

View File

@@ -159,6 +159,8 @@ feature "As a consumer I want to check out my cart", js: true, retry: 3 do
gateway_customer_profile_id: "i_am_saved")
end
let!(:stripe_account) { create(:stripe_account, enterprise_id: distributor.id, stripe_user_id: 'some_id') }
let(:response_mock) { { id: "ch_1234", object: "charge", amount: 2000} }
before do