Skip to content

Commit dccf7d5

Browse files
fix: add billing_details attribute to charge
1 parent 50290ba commit dccf7d5

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

lib/stripe_mock/data.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,19 @@ def self.mock_charge(params={})
223223
amount: 0,
224224
application_fee: nil,
225225
application_fee_amount: nil,
226+
billing_details: {
227+
address: {
228+
city: 'New Orleans',
229+
country: 'US',
230+
line1: 'Bourbon Street 23',
231+
line2: nil,
232+
postal_code: '10000',
233+
state: nil
234+
},
235+
email: 'foo@bar.com',
236+
name: 'John Dolton',
237+
phone: nil
238+
},
226239
currency: currency,
227240
destination: nil,
228241
fraud_details: {},

0 commit comments

Comments
 (0)