Skip to content

Commit

Permalink
Merge pull request stripe-ruby-mock#748 from Huibin/add-receipt_url-t…
Browse files Browse the repository at this point in the history
…o-charge-and-refund

[Data] Add receipt_url to charge and refund mock data
  • Loading branch information
TastyPi authored Jun 24, 2022
2 parents af256ac + 35efc5e commit 6ceea96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/stripe_mock/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def self.mock_charge(params={})
},
receipt_email: nil,
receipt_number: nil,
receipt_url: nil,
refunded: false,
shipping: {},
statement_descriptor: "Charge #{charge_id}",
Expand Down Expand Up @@ -276,7 +277,8 @@ def self.mock_refund(params={})
charge: "ch_4fWhYjzQ23UFWT",
receipt_number: nil,
status: "succeeded",
reason: "requested_by_customer"
reason: "requested_by_customer",
receipt_url: nil
}.merge(params)
end

Expand Down

0 comments on commit 6ceea96

Please sign in to comment.