Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
knowmalaria
stripe-ruby-mock
Commits
ed39b0bd
Commit
ed39b0bd
authored
Feb 11, 2016
by
Alexander Mamonchik
Browse files
Merge pull request #207 from charitywater/card-to-source
Updated default webhook fixtures to use “source” instead of “card”
parents
6ad891de
77fbe56e
Changes
5
Hide whitespace changes
Inline
Side-by-side
lib/stripe_mock/webhook_fixtures/charge.failed.json
View file @
ed39b0bd
...
...
@@ -14,7 +14,7 @@
"amount"
:
1000
,
"currency"
:
"usd"
,
"refunded"
:
false
,
"
card
"
:
{
"
source
"
:
{
"id"
:
"cc_00000000000000"
,
"object"
:
"card"
,
"last4"
:
"4242"
,
...
...
lib/stripe_mock/webhook_fixtures/charge.refunded.json
View file @
ed39b0bd
...
...
@@ -14,7 +14,7 @@
"amount"
:
1000
,
"currency"
:
"usd"
,
"refunded"
:
true
,
"
card
"
:
{
"
source
"
:
{
"id"
:
"cc_00000000000000"
,
"object"
:
"card"
,
"last4"
:
"4242"
,
...
...
lib/stripe_mock/webhook_fixtures/charge.succeeded.json
View file @
ed39b0bd
...
...
@@ -14,7 +14,7 @@
"amount"
:
1000
,
"currency"
:
"usd"
,
"refunded"
:
false
,
"
card
"
:
{
"
source
"
:
{
"id"
:
"cc_00000000000000"
,
"object"
:
"card"
,
"last4"
:
"4242"
,
...
...
lib/stripe_mock/webhook_fixtures/customer.created.json
View file @
ed39b0bd
...
...
@@ -18,7 +18,7 @@
"subscription"
:
null
,
"discount"
:
null
,
"account_balance"
:
0
,
"
card
s"
:
{
"
source
s"
:
{
"object"
:
"list"
,
"count"
:
1
,
"url"
:
"/v1/customers/cus_2I2AhGQOPmEFeu/cards"
,
...
...
lib/stripe_mock/webhook_fixtures/customer.updated.json
View file @
ed39b0bd
...
...
@@ -18,7 +18,7 @@
"subscription"
:
null
,
"discount"
:
null
,
"account_balance"
:
0
,
"
card
s"
:
{
"
source
s"
:
{
"object"
:
"list"
,
"count"
:
1
,
"url"
:
"/v1/customers/cus_2I2AhGQOPmEFeu/cards"
,
...
...
@@ -48,7 +48,7 @@
}
]
},
"default_
card
"
:
"cc_2I2akIhmladin5"
"default_
source
"
:
"cc_2I2akIhmladin5"
},
"previous_attributes"
:
{
"description"
:
"Old description"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment