#Mahesh K
1 messages ยท Page 1 of 1 (latest)
hi
thanks for your response.
@crimson snow are you there??
i am using the invoice payment for the payment catching, is there a way to charge my customer based on the payment method he selects.
I'm here. There's many other users in discord so you'll need to be patient
ok
So you want to charge different amounts depending on the type of payment method? And you're using our hosted invoice page to accept these payments from customers?
My colleague answered your question it looks like in the other thread
You would have to do something like as what payment method they want to use, create the invoice with the amount appropriate for that invoice, and then present the invoice to them like that
Am just about to close that one and move discussion here
And then Mahesh asked:
how can do it before finalizing the invoice
for multiple payment methods
yes
You can do that one of two ways, by adding an invoice item for the extra charge or by modifying the existing item(s) on the invoice
but for different payment methods stripe is charging different charges. how can i know that the customer will select a particular payment method only.
context deadline exceeded (Client.Timeout exceeded while awaiting headers)
i am getting the following error while communicating with the stripe.
You'd need to collect that up front outside the invoice if you're using the hosted page
Can you share the request id for that?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
full stacktrace means?
Oh so that's not an error when making a request to stripe then
That's an error when trying to hit your webhook endpoint
Have you tried just hitting that endpoint with postman or some other tool?
Does it time out then too?
Those errors in your screenshot are from the stripe listen cli command?
yes
but i am able to catch the event on my server side coming from the stripe
only the cli is showing this error
did you got my issue?
or is this an issue or should i ignore
So is your server responding successfully? Or do you see errors in your server logs?
no
Check the logs for your local endpoint
Can you share those for each of the above calls stripe listen made to the endpoint?
Just want to have a look to see what's going on
Yes. Can you share the logs for your local endpoint
For each of the requests that were made in that first screenshot
You said your local endpoint is responding successfully so I want to verify that
ok
wait a sec
customer creates : stripe customer id
where i catching it from the stripe listen
You don't have like a server log with timestamps that shows each request made to it?
Nope was reading the above
๐ข
Looks like you are having an issue with handling webhooks, correct?
yes
Okay so looks like you are only seeing this error on the CLI but your code is running fine
Correct?
You are going to have to be patient, helping multiple people at once
If your server code isn't showing any error then you can ignore the CLI errors
ok thank you...
and can you have any git repos for the integrating to a system. for my reference.
here i am trying to sync my system data into stripe and generating the invoicing payment. and i need to cover the connect accounts for multiple users.
Hmm no we don't have an example of that really
You would ingest the data via a Webhook like you are doing
And store it on your end
You mean building a Connect integration?
What type of Connected Accounts? What type of payments?
I need more info to help you
Gotcha. We won't really have one sample that has all of this. I'd recommend looking through our Samples repo: https://github.com/stripe-samples and you will find ones like Connect Onboarding for Standard: https://github.com/stripe-samples/connect-onboarding-for-standard