Created
July 10, 2022 22:26
-
-
Save Gbuomprisco/3a0969ef9cf82d2b79c6e018a983b964 to your computer and use it in GitHub Desktop.
Fixture for working with stripe-mock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"after_expiration": null, | |
"allow_promotion_codes": null, | |
"amount_subtotal": null, | |
"amount_total": null, | |
"automatic_tax": { | |
"enabled": false, | |
"status": null | |
}, | |
"billing_address_collection": null, | |
"cancel_url": "https://example.com/cancel", | |
"client_reference_id": "jpbCRSjRqW7IddsaKomZ", | |
"consent": null, | |
"consent_collection": null, | |
"currency": null, | |
"customer": null, | |
"customer_creation": null, | |
"customer_details": null, | |
"customer_email": null, | |
"expires_at": 1234567890, | |
"id": "cs_test_a1uVKHHi83MMXCLHColeLoVCtpvgQ76hQJZeJ2B4Y7xQ7v9dwPQgvJi1GN", | |
"livemode": false, | |
"locale": null, | |
"metadata": {}, | |
"mode": "payment", | |
"object": "checkout.session", | |
"payment_intent": "pi_1LFiblKr5l4rxPx39rs4ujRX", | |
"payment_link": null, | |
"payment_method_options": {}, | |
"payment_method_types": [ | |
"card" | |
], | |
"payment_status": "unpaid", | |
"phone_number_collection": { | |
"enabled": false | |
}, | |
"recovered_from": null, | |
"setup_intent": null, | |
"shipping": null, | |
"shipping_address_collection": null, | |
"shipping_options": [], | |
"shipping_rate": null, | |
"status": "expired", | |
"submit_type": null, | |
"subscription": "si_Lxdth5F0lI07Pz", | |
"success_url": "https://example.com/success", | |
"total_details": null, | |
"url": null | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"application": null, | |
"application_fee_percent": null, | |
"automatic_tax": { | |
"enabled": false | |
}, | |
"billing_cycle_anchor": 1234567890, | |
"billing_thresholds": null, | |
"cancel_at": 1234567890, | |
"cancel_at_period_end": false, | |
"canceled_at": 1234567890, | |
"collection_method": "charge_automatically", | |
"created": 1234567890, | |
"current_period_end": 1234567890, | |
"current_period_start": 1234567890, | |
"customer": "cus_Lxdt51ApFTRiwf", | |
"days_until_due": null, | |
"default_payment_method": null, | |
"default_source": null, | |
"default_tax_rates": [], | |
"description": null, | |
"discount": null, | |
"ended_at": 1234567890, | |
"id": "si_Lxdth5F0lI07Pz", | |
"items": { | |
"data": [ | |
{ | |
"billing_thresholds": null, | |
"created": 1656438837, | |
"id": "si_Lxdth5F0lI07Pz", | |
"metadata": {}, | |
"object": "subscription_item", | |
"price": { | |
"active": true, | |
"billing_scheme": "per_unit", | |
"created": 1656438834, | |
"currency": "usd", | |
"custom_unit_amount": null, | |
"id": "price_1LFibmKr5l4rxPx3wWcSO8UY", | |
"livemode": false, | |
"lookup_key": null, | |
"metadata": {}, | |
"nickname": null, | |
"object": "price", | |
"product": "prod_Lxdty66xru4Wzz", | |
"recurring": { | |
"aggregate_usage": null, | |
"interval": "month", | |
"interval_count": 1, | |
"usage_type": "licensed" | |
}, | |
"tax_behavior": "unspecified", | |
"tiers_mode": null, | |
"transform_quantity": null, | |
"type": "recurring", | |
"unit_amount": 2000, | |
"unit_amount_decimal": "2000" | |
}, | |
"quantity": 1, | |
"subscription": "sub_1LFibpKr5l4rxPx3clKMw5A0", | |
"tax_rates": [] | |
} | |
], | |
"has_more": false, | |
"object": "list", | |
"url": "/v1/subscription_items?subscription=sub_1LFibmKr5l4rxPx3XJePAR3m" | |
}, | |
"latest_invoice": null, | |
"livemode": false, | |
"metadata": {}, | |
"next_pending_invoice_item_invoice": 1234567890, | |
"object": "subscription", | |
"pause_collection": null, | |
"payment_settings": { | |
"payment_method_options": null, | |
"payment_method_types": null, | |
"save_default_payment_method": null | |
}, | |
"pending_invoice_item_interval": null, | |
"pending_setup_intent": null, | |
"pending_update": null, | |
"schedule": null, | |
"start_date": 1234567890, | |
"status": "active", | |
"test_clock": null, | |
"transfer_data": null, | |
"trial_end": 1234567890, | |
"trial_start": 1234567890 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment