#Miloszex
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
payload from stripe
{
"api_version": "2022-11-15",
"created": 1688550679,
"data": {
"object": {
"after_expiration": None,
"allow_promotion_codes": None,
"amount_subtotal": 30000,
"amount_total": 30000,
"automatic_tax": {},
"billing_address_collection": None,
"cancel_url": "https://pr-payments-stripe.stg-k8s.szkolawchmurze.org/przestrzen-rodzica/deklaracja-skladki?redirectedFromPayment=true&status=failed&declarationId=685&declarationType=SUBSCRIPTION",
"client_reference_id": None,
"id": "cs_test_a1g32bMripA2Yu79TGUpsIhzTrTUK6GyYQxNxY2O1i5bTYXIf7KRvUOiQT",
"object": "checkout.session"
}
},
"id": "evt_1NQSMlJZ9pJk48QCvmaQnX5e",
"livemode": False,
"object": "event",
"pending_webhooks": 1,
"request": {
"id": None,
"idempotency_key": None
},
"type": "checkout.session.completed"
just give me a second to take a look
sorry still haven't had the chance to take a look
no problem i'll wait
would you mind describing what were you expecting?
Okay
First of all When Im creating subscription model what param is constant subscription id or invoice id? I think it is subscription id
subscription ID
second: When the next subscription payment is called the event webhook is invoice paid right?
yes
okay thats strange because stripe fired this event to my application and New payment object wasn't created. Can You tell me how can I write my own fixture and inject proper data theere to trigger this event ?
invoice.paid
I will debug this
I want to inject subscription_id to invoice.paid call
It should be there: https://stripe.com/docs/api/invoices/object#invoice_object-subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.