#krishnaKanabar-subscription
1 messages · Page 1 of 1 (latest)
okay
Can I use ngrok to test webhooks in local enviorment?
Should be possible
When invoice is getting paid I have added event 'invoice.payment_succeeded'. Now to test it I did used this webhook endpoint
but it's not getting triggered
We can do a quick check if you provide the Invoice Id, the event id (evt_xxx)
solved
evt_1LUn8rSJsXH2azWQm9pICTtF
this event is getting failed
could you tell me the reason?
Your server returned 500
Webhook event needs to get 200 response back to consider it's well received
It totally depends on your server. You will need to enable logging in your server and debug it
okay
can you tell me a way how to retrieve event data
like what event data is actually getting passed to server
Hi! I'm taking over this thread.
You should add some logs to your backend server to see exactly what happens there.
is there any way from stripe
evt_1LUnNWSJsXH2azWQuXwFZ7ou
I wanted event data of this event id
What do you mean by event data? If the event is sent to your server, you can add some logs on your server to print the data.
Otherwise you can see it in your dashboard here: https://dashboard.stripe.com/test/events/evt_1LUnNWSJsXH2azWQuXwFZ7ou
okay
This is expected, since the invoice is for a zero amount. So there's nothing to actually charge.
I have added invoice item to customer
is there any way I can update customer payment method by this
in_1LUnwwSJsXH2azWQo2CrYwoJ
check this invocie it's for amount INR 0 but I am adding credit balance and for that i have used payment method.......now how to attach that to customer
attach what to the customer exactly? Which payment method?
as you mention that's a zero amount invoice due to being negative because of a negative invoice item you created; so there is nothing to pay and no need for a payment method.
I am actually taking INR 99 for trial period. As stripe doesn't provide paid trial , what i did is that created payment intent of INR 99 and confirmed payment. and then created invoiceitem of same amount and attached to customer
So I want payment method of that where I paid INR 99
payment -intent id - pi_3LUnwYSJsXH2azWQ12yVKxxp