Skip to content

Commit

Permalink
Merge pull request #9507 from openfoodfoundation/dependabot/bundler/s…
Browse files Browse the repository at this point in the history
…tripe-7.0.0

Bump stripe from 5.42.0 to 7.0.0
  • Loading branch information
filipefurtad0 authored Aug 9, 2022
2 parents 5122ed9 + c8cab8a commit e3a1502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ GEM
activerecord (>= 5.1)
state_machines-activemodel (>= 0.8.0)
stringex (2.8.5)
stripe (5.42.0)
stripe (7.0.0)
temple (0.8.2)
test-prof (1.0.9)
test-unit (3.5.3)
Expand Down
4 changes: 2 additions & 2 deletions spec/support/request/stripe_stubs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ def retrieve_payment_method_response_mock(options)

def list_customers_response_mock(options)
{ status: options[:code] || 200,
body: JSON.generate(has_more: false, data: [{ id: "cus_A456" }]) }
body: JSON.generate(object: "list", has_more: false, data: [{ id: "cus_A456" }]) }
end

def get_customer_payment_methods_response_mock(options)
payment_method = options[:payment_method] || "pm_456"
fingerprint = options[:fingerprint] || "7890"
{ status: options[:code] || 200,
body: JSON.generate(
has_more: false, data: [{ id: payment_method, card: { fingerprint: fingerprint } }]
object: "list", has_more: false, data: [{ id: payment_method, card: { fingerprint: fingerprint } }]
) }
end

Expand Down

0 comments on commit e3a1502

Please sign in to comment.