Update
This commit is contained in:
@@ -12,136 +12,190 @@ post {
|
||||
|
||||
body:json {
|
||||
{
|
||||
"id": "evt_1RgRPrEEXQJo9EEOWggvNEHe",
|
||||
"id": "evt_1RghW8EEXQJo9EEOI2W1LyN4",
|
||||
"object": "event",
|
||||
"api_version": "2025-05-28.basil",
|
||||
"created": 1751465619,
|
||||
"created": 1751527512,
|
||||
"data": {
|
||||
"object": {
|
||||
"id": "cs_test_a1RMSyzQu5Mk2cZYoAYLOCV9hfoc5z9RuYdE4jLY2htoizGr1AJZeAcnDh",
|
||||
"object": "checkout.session",
|
||||
"adaptive_pricing": {
|
||||
"enabled": true
|
||||
},
|
||||
"after_expiration": null,
|
||||
"allow_promotion_codes": null,
|
||||
"amount_subtotal": 400,
|
||||
"amount_total": 400,
|
||||
"id": "sub_1RgU1iEEXQJo9EEOBmsO7ZIo",
|
||||
"object": "subscription",
|
||||
"application": null,
|
||||
"application_fee_percent": null,
|
||||
"automatic_tax": {
|
||||
"disabled_reason": null,
|
||||
"enabled": false,
|
||||
"liability": null,
|
||||
"provider": null,
|
||||
"status": null
|
||||
"liability": null
|
||||
},
|
||||
"billing_address_collection": null,
|
||||
"cancel_url": "https://memeaigen.test/subscribe/cancelled?session_id={CHECKOUT_SESSION_ID}",
|
||||
"client_reference_id": null,
|
||||
"client_secret": null,
|
||||
"collected_information": {
|
||||
"shipping_details": null
|
||||
"billing_cycle_anchor": 1751475654,
|
||||
"billing_cycle_anchor_config": null,
|
||||
"billing_mode": {
|
||||
"type": "classic"
|
||||
},
|
||||
"consent": null,
|
||||
"consent_collection": null,
|
||||
"created": 1751465613,
|
||||
"billing_thresholds": null,
|
||||
"cancel_at": null,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": 1751527511,
|
||||
"cancellation_details": {
|
||||
"comment": null,
|
||||
"feedback": null,
|
||||
"reason": "cancellation_requested"
|
||||
},
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1751475654,
|
||||
"currency": "usd",
|
||||
"currency_conversion": null,
|
||||
"custom_fields": [],
|
||||
"custom_text": {
|
||||
"after_submit": null,
|
||||
"shipping_address": null,
|
||||
"submit": null,
|
||||
"terms_of_service_acceptance": null
|
||||
},
|
||||
"customer": "cus_SbGYl34MpG4nv5",
|
||||
"customer_creation": null,
|
||||
"customer_details": {
|
||||
"address": {
|
||||
"city": null,
|
||||
"country": "MY",
|
||||
"line1": null,
|
||||
"line2": null,
|
||||
"postal_code": null,
|
||||
"state": null
|
||||
},
|
||||
"email": "memeaigen.com@gmail.com",
|
||||
"name": "TEST NAME",
|
||||
"phone": null,
|
||||
"tax_exempt": "none",
|
||||
"tax_ids": []
|
||||
},
|
||||
"customer_email": null,
|
||||
"days_until_due": null,
|
||||
"default_payment_method": "pm_1RgU1hEEXQJo9EEOBnHcyDTz",
|
||||
"default_source": null,
|
||||
"default_tax_rates": [],
|
||||
"description": null,
|
||||
"discounts": [],
|
||||
"expires_at": 1751552013,
|
||||
"invoice": null,
|
||||
"invoice_creation": {
|
||||
"enabled": false,
|
||||
"invoice_data": {
|
||||
"account_tax_ids": null,
|
||||
"custom_fields": null,
|
||||
"description": null,
|
||||
"footer": null,
|
||||
"issuer": null,
|
||||
"metadata": {},
|
||||
"rendering_options": null
|
||||
"ended_at": 1751527511,
|
||||
"invoice_settings": {
|
||||
"account_tax_ids": null,
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
}
|
||||
},
|
||||
"livemode": false,
|
||||
"locale": null,
|
||||
"metadata": {},
|
||||
"mode": "payment",
|
||||
"payment_intent": "pi_3RgRPqEEXQJo9EEO1a43uB5g",
|
||||
"payment_link": null,
|
||||
"payment_method_collection": "if_required",
|
||||
"payment_method_configuration_details": {
|
||||
"id": "pmc_1RfN0QEEXQJo9EEOzYHrN3LV",
|
||||
"parent": null
|
||||
},
|
||||
"payment_method_options": {
|
||||
"card": {
|
||||
"request_three_d_secure": "automatic"
|
||||
}
|
||||
},
|
||||
"payment_method_types": [
|
||||
"card",
|
||||
"link"
|
||||
],
|
||||
"payment_status": "paid",
|
||||
"permissions": null,
|
||||
"phone_number_collection": {
|
||||
"enabled": false
|
||||
},
|
||||
"recovered_from": null,
|
||||
"saved_payment_method_options": {
|
||||
"allow_redisplay_filters": [
|
||||
"always"
|
||||
"items": {
|
||||
"object": "list",
|
||||
"data": [
|
||||
{
|
||||
"id": "si_SbhQOOEJ1xUQ7Y",
|
||||
"object": "subscription_item",
|
||||
"billing_thresholds": null,
|
||||
"created": 1751475654,
|
||||
"current_period_end": 1754154054,
|
||||
"current_period_start": 1751475654,
|
||||
"discounts": [],
|
||||
"metadata": {},
|
||||
"plan": {
|
||||
"id": "price_1RfN2VEEXQJo9EEOzjPI2HGt",
|
||||
"object": "plan",
|
||||
"active": true,
|
||||
"amount": 400,
|
||||
"amount_decimal": "400",
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1751210467,
|
||||
"currency": "usd",
|
||||
"interval": "month",
|
||||
"interval_count": 1,
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"meter": null,
|
||||
"nickname": null,
|
||||
"product": "prod_SaY8TGjiPi5hWu",
|
||||
"tiers_mode": null,
|
||||
"transform_usage": null,
|
||||
"trial_period_days": null,
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"price": {
|
||||
"id": "price_1RfN2VEEXQJo9EEOzjPI2HGt",
|
||||
"object": "price",
|
||||
"active": true,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1751210467,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"product": "prod_SaY8TGjiPi5hWu",
|
||||
"recurring": {
|
||||
"interval": "month",
|
||||
"interval_count": 1,
|
||||
"meter": null,
|
||||
"trial_period_days": null,
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
"transform_quantity": null,
|
||||
"type": "recurring",
|
||||
"unit_amount": 400,
|
||||
"unit_amount_decimal": "400"
|
||||
},
|
||||
"quantity": 1,
|
||||
"subscription": "sub_1RgU1iEEXQJo9EEOBmsO7ZIo",
|
||||
"tax_rates": []
|
||||
}
|
||||
],
|
||||
"payment_method_remove": "disabled",
|
||||
"payment_method_save": null
|
||||
"has_more": false,
|
||||
"total_count": 1,
|
||||
"url": "/v1/subscription_items?subscription=sub_1RgU1iEEXQJo9EEOBmsO7ZIo"
|
||||
},
|
||||
"setup_intent": null,
|
||||
"shipping_address_collection": null,
|
||||
"shipping_cost": null,
|
||||
"shipping_options": [],
|
||||
"status": "complete",
|
||||
"submit_type": null,
|
||||
"subscription": null,
|
||||
"success_url": "https://memeaigen.test/subscribe/success?session_id={CHECKOUT_SESSION_ID}",
|
||||
"total_details": {
|
||||
"amount_discount": 0,
|
||||
"amount_shipping": 0,
|
||||
"amount_tax": 0
|
||||
"latest_invoice": "in_1RgU1iEEXQJo9EEObpcu0isX",
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"is_on_session_checkout": "true"
|
||||
},
|
||||
"ui_mode": "hosted",
|
||||
"url": null,
|
||||
"wallet_options": null
|
||||
"next_pending_invoice_item_invoice": null,
|
||||
"on_behalf_of": null,
|
||||
"pause_collection": null,
|
||||
"payment_settings": {
|
||||
"payment_method_options": {
|
||||
"acss_debit": null,
|
||||
"bancontact": null,
|
||||
"card": {
|
||||
"network": null,
|
||||
"request_three_d_secure": "automatic"
|
||||
},
|
||||
"customer_balance": null,
|
||||
"konbini": null,
|
||||
"sepa_debit": null,
|
||||
"us_bank_account": null
|
||||
},
|
||||
"payment_method_types": null,
|
||||
"save_default_payment_method": "off"
|
||||
},
|
||||
"pending_invoice_item_interval": null,
|
||||
"pending_setup_intent": null,
|
||||
"pending_update": null,
|
||||
"plan": {
|
||||
"id": "price_1RfN2VEEXQJo9EEOzjPI2HGt",
|
||||
"object": "plan",
|
||||
"active": true,
|
||||
"amount": 400,
|
||||
"amount_decimal": "400",
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1751210467,
|
||||
"currency": "usd",
|
||||
"interval": "month",
|
||||
"interval_count": 1,
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"meter": null,
|
||||
"nickname": null,
|
||||
"product": "prod_SaY8TGjiPi5hWu",
|
||||
"tiers_mode": null,
|
||||
"transform_usage": null,
|
||||
"trial_period_days": null,
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 1,
|
||||
"schedule": null,
|
||||
"start_date": 1751475654,
|
||||
"status": "canceled",
|
||||
"test_clock": null,
|
||||
"transfer_data": null,
|
||||
"trial_end": null,
|
||||
"trial_settings": {
|
||||
"end_behavior": {
|
||||
"missing_payment_method": "create_invoice"
|
||||
}
|
||||
},
|
||||
"trial_start": null
|
||||
}
|
||||
},
|
||||
"livemode": false,
|
||||
"pending_webhooks": 2,
|
||||
"request": {
|
||||
"id": null,
|
||||
"id": "req_cCXhmqNMHSgIwr",
|
||||
"idempotency_key": null
|
||||
},
|
||||
"type": "checkout.session.completed"
|
||||
"type": "customer.subscription.deleted"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user