codecombat/spec/fixtures/db-prepaid-purchase-course-test-3.json
2015-12-16 16:39:44 -08:00

95 lines
No EOL
2.6 KiB
JSON

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOQgKaReE7xLUd7Cj6SMxq",
"card": {
"id": "card_17IOQgKaReE7xLUd2XI9u2el"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7XTN61mUy646vB",
"alipay_accounts": {
"has_more": false
},
"email": "user89@me.com",
"metadata": {
"id": "000000000000000000000081"
},
"sources": {
"data": [
{
"id": "card_17IOQgKaReE7xLUd2XI9u2el",
"customer": "cus_7XTN61mUy646vB"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTN61mUy646vB",
"status": 200,
"response": {
"id": "cus_7XTN61mUy646vB",
"alipay_accounts": {
"has_more": false
},
"email": "user89@me.com",
"metadata": {
"id": "000000000000000000000081"
},
"sources": {
"data": [
{
"id": "card_17IOQgKaReE7xLUd2XI9u2el",
"customer": "cus_7XTN61mUy646vB"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/charges",
"status": 200,
"response": {
"id": "ch_17IOQhKaReE7xLUd4dyiqDny",
"amount": 300,
"customer": "cus_7XTN61mUy646vB",
"metadata": {
"type": "course",
"timestamp": "1450207546495",
"productID": "prepaid course"
},
"paid": true,
"refunds": {
"has_more": false
},
"source": {
"id": "card_17IOQgKaReE7xLUd2XI9u2el",
"customer": "cus_7XTN61mUy646vB"
}
}
}
]