diff --git a/Gemfile.lock b/Gemfile.lock index 2b19e5b3080..4326dc609d2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) diff --git a/spec/support/request/stripe_stubs.rb b/spec/support/request/stripe_stubs.rb index 53bf241c3bc..09033aebe01 100644 --- a/spec/support/request/stripe_stubs.rb +++ b/spec/support/request/stripe_stubs.rb @@ -162,7 +162,7 @@ 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) @@ -170,7 +170,7 @@ def get_customer_payment_methods_response_mock(options) 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