#ying-webhook-grpc
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- yingwang-invoice-questions, 1 day ago, 34 messages
- yingwg, 2 days ago, 12 messages
- yingwg, 2 days ago, 10 messages
- yingwg, 6 days ago, 3 messages
Hi, if the charge succeeds and if you're listening to the event payment_intent.succeeded, https://stripe.com/docs/api/events/types#event_types-payment_intent.succeeded then yes Subscription renewals will send this. You can also test this in test mode using Test Clocks, https://stripe.com/docs/billing/testing/test-clocks. This allows you to simulate the forward movement of time.
one more question, does a draft invoice list item prices before or after applying the credit?
yingwang-sub-events
I'm unsure what you're asking on the follow up question. Can you clarify/ add more details? It's always ideal to test things on your end using your test API key to see expected behavior so I recommend testing these as well.
so when stipe create a draft invoice, it will send a signal to our webhook to modify it before finalization
so I want to know if the price listed there is the price before applying credit or after, so we handle it differently
If the customer has a credit balance already, it would be after the credit is applied, https://stripe.com/docs/billing/customer/balance.
i see
I have an unrelated question regarding webhook
can we implement an webhook endpoint as a grpc endpoint?
Are you referring to https://cloud.google.com/endpoints/docs/grpc/about-grpc?
ah ,right
our backend is a gRPC server
how can we make stripe to call our gRPC server?
We don't really support grpc no. Our webhook logic makes an HTTPS request to your webhook endpoint, the rest is something you'd have to handle yourself