#Miloszex

1 messages ยท Page 1 of 1 (latest)

cyan auroraBOT
hot wing
#

๐Ÿ‘‹ happy to help

tender falcon
#

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"

hot wing
#

just give me a second to take a look

tender falcon
#

okay

#

ohhhh

#

I found the problem

#

sorry for bothering

#

Nope it is not ๐Ÿ˜•

hot wing
#

sorry still haven't had the chance to take a look

tender falcon
#

no problem i'll wait

hot wing
#

would you mind describing what were you expecting?

tender falcon
#

Okay

#

First of all When Im creating subscription model what param is constant subscription id or invoice id? I think it is subscription id

hot wing
#

subscription ID

tender falcon
#

second: When the next subscription payment is called the event webhook is invoice paid right?

hot wing
#

yes

tender falcon
#

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

cyan auroraBOT
tender falcon
#

I want to inject subscription_id to invoice.paid call

timid phoenix