2015-12-09 17:27:10 -05:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"scope": "https://api.stripe.com:443",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/v1/tokens",
|
|
|
|
"status": 200,
|
|
|
|
"response": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "tok_17IOQnKaReE7xLUd7vxmypxi",
|
2015-12-09 17:27:10 -05:00
|
|
|
"card": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "card_17IOQnKaReE7xLUdwvfk7NXJ"
|
2015-12-09 17:27:10 -05:00
|
|
|
},
|
|
|
|
"type": "card"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scope": "https://api.stripe.com:443",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/v1/customers",
|
|
|
|
"status": 200,
|
|
|
|
"response": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"alipay_accounts": {
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"email": "normal@jo.com",
|
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"sources": {
|
|
|
|
"data": [
|
|
|
|
{
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "card_17IOQnKaReE7xLUdwvfk7NXJ",
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t"
|
2015-12-09 17:27:10 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"subscriptions": {
|
|
|
|
"has_more": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scope": "https://api.stripe.com:443",
|
|
|
|
"method": "POST",
|
2015-12-15 14:45:52 -05:00
|
|
|
"path": "/v1/customers/cus_7XTNzqLiTWHO6t/subscriptions",
|
2015-12-09 17:27:10 -05:00
|
|
|
"status": 200,
|
|
|
|
"response": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "sub_7XTN0j8yRl2LLW",
|
|
|
|
"cancel_at_period_end": false,
|
|
|
|
"current_period_end": 1452885954,
|
|
|
|
"current_period_start": 1450207554,
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t",
|
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"plan": {
|
|
|
|
"id": "basic",
|
|
|
|
"amount": 100
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scope": "https://api.stripe.com:443",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/v1/customers/cus_7XTNzqLiTWHO6t",
|
|
|
|
"status": 200,
|
|
|
|
"response": {
|
|
|
|
"id": "cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"alipay_accounts": {
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"email": "normal@jo.com",
|
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"sources": {
|
|
|
|
"data": [
|
|
|
|
{
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "card_17IOQnKaReE7xLUdwvfk7NXJ",
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t"
|
2015-12-09 17:27:10 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"subscriptions": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "sub_7XTN0j8yRl2LLW",
|
|
|
|
"cancel_at_period_end": false,
|
|
|
|
"current_period_end": 1452885954,
|
|
|
|
"current_period_start": 1450207554,
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t",
|
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"plan": {
|
|
|
|
"id": "basic",
|
|
|
|
"amount": 100
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
2015-12-09 17:27:10 -05:00
|
|
|
"has_more": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scope": "https://api.stripe.com:443",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/v1/tokens",
|
|
|
|
"status": 200,
|
|
|
|
"response": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "tok_17IOQqKaReE7xLUdvDFV7zxM",
|
2015-12-09 17:27:10 -05:00
|
|
|
"card": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "card_17IOQqKaReE7xLUdRqwKR3Vo"
|
2015-12-09 17:27:10 -05:00
|
|
|
},
|
|
|
|
"type": "card"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scope": "https://api.stripe.com:443",
|
|
|
|
"method": "POST",
|
2015-12-15 14:45:52 -05:00
|
|
|
"path": "/v1/customers/cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"status": 200,
|
|
|
|
"response": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"alipay_accounts": {
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"email": "normal@jo.com",
|
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"sources": {
|
|
|
|
"data": [
|
|
|
|
{
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "card_17IOQnKaReE7xLUdwvfk7NXJ",
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t"
|
2015-12-09 17:27:10 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"subscriptions": {
|
|
|
|
"data": [
|
|
|
|
{
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "sub_7XTN0j8yRl2LLW",
|
2015-12-09 17:27:10 -05:00
|
|
|
"cancel_at_period_end": false,
|
2015-12-15 14:45:52 -05:00
|
|
|
"current_period_end": 1452885954,
|
|
|
|
"current_period_start": 1450207554,
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"plan": {
|
|
|
|
"id": "basic",
|
2015-12-15 14:45:52 -05:00
|
|
|
"amount": 100
|
2015-12-09 17:27:10 -05:00
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scope": "https://api.stripe.com:443",
|
|
|
|
"method": "POST",
|
2015-12-15 14:45:52 -05:00
|
|
|
"path": "/v1/customers/cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"status": 200,
|
|
|
|
"response": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"alipay_accounts": {
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"email": "normal@jo.com",
|
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"sources": {
|
|
|
|
"data": [
|
|
|
|
{
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "card_17IOQnKaReE7xLUdwvfk7NXJ",
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t"
|
2015-12-09 17:27:10 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"subscriptions": {
|
|
|
|
"data": [
|
|
|
|
{
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "sub_7XTN0j8yRl2LLW",
|
2015-12-09 17:27:10 -05:00
|
|
|
"cancel_at_period_end": false,
|
2015-12-15 14:45:52 -05:00
|
|
|
"current_period_end": 1452885954,
|
|
|
|
"current_period_start": 1450207554,
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"plan": {
|
|
|
|
"id": "basic",
|
2015-12-15 14:45:52 -05:00
|
|
|
"amount": 100
|
2015-12-09 17:27:10 -05:00
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scope": "https://api.stripe.com:443",
|
|
|
|
"method": "POST",
|
2015-12-15 14:45:52 -05:00
|
|
|
"path": "/v1/customers/cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"status": 200,
|
|
|
|
"response": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"alipay_accounts": {
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"email": "normal@jo.com",
|
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"sources": {
|
|
|
|
"data": [
|
|
|
|
{
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "card_17IOQqKaReE7xLUdRqwKR3Vo",
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t"
|
2015-12-09 17:27:10 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"subscriptions": {
|
|
|
|
"data": [
|
|
|
|
{
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "sub_7XTN0j8yRl2LLW",
|
2015-12-09 17:27:10 -05:00
|
|
|
"cancel_at_period_end": false,
|
2015-12-15 14:45:52 -05:00
|
|
|
"current_period_end": 1452885954,
|
|
|
|
"current_period_start": 1450207554,
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"metadata": {
|
|
|
|
"id": "000000000000000000000088"
|
|
|
|
},
|
|
|
|
"plan": {
|
|
|
|
"id": "basic",
|
2015-12-15 14:45:52 -05:00
|
|
|
"amount": 100
|
2015-12-09 17:27:10 -05:00
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scope": "https://api.stripe.com:443",
|
|
|
|
"method": "POST",
|
|
|
|
"path": "/v1/charges",
|
|
|
|
"status": 200,
|
|
|
|
"response": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "ch_17IOQsKaReE7xLUd6vAsPLa6",
|
|
|
|
"amount": 900,
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t",
|
2015-12-09 17:27:10 -05:00
|
|
|
"metadata": {
|
|
|
|
"type": "terminal_subscription",
|
2015-12-15 14:45:52 -05:00
|
|
|
"timestamp": "1450207556958",
|
2015-12-09 17:27:10 -05:00
|
|
|
"months": "3",
|
|
|
|
"productID": "prepaid terminal_subscription"
|
|
|
|
},
|
|
|
|
"paid": true,
|
|
|
|
"refunds": {
|
|
|
|
"has_more": false
|
|
|
|
},
|
|
|
|
"source": {
|
2015-12-15 14:45:52 -05:00
|
|
|
"id": "card_17IOQqKaReE7xLUdRqwKR3Vo",
|
|
|
|
"customer": "cus_7XTNzqLiTWHO6t"
|
2015-12-09 17:27:10 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|