#Mahesh K

1 messages ยท Page 1 of 1 (latest)

silk needleBOT
crimson snow
#

Hi lets chat in this thread

#

What can we help you with?

modern girder
#

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.

crimson snow
#

I'm here. There's many other users in discord so you'll need to be patient

modern girder
#

ok

crimson snow
#

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?

modern girder
#

yes

#

exactly

crimson snow
#

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

fluid forum
#

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

modern girder
#

yes

fluid forum
#

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

modern girder
#

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.

crimson snow
#

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?

modern girder
#

req_R5nfykDYEaOJsL

#

req_j4JL7UPj8f3jwz

crimson snow
#

That's a successful request

#

200 response with a body

modern girder
#

but in he CLI its showing the error like the above

#

did you got my point?

crimson snow
#

No. Can you share the logs? or a screenshot?

#

Full stacktrace would be best

modern girder
#

full stacktrace means?

crimson snow
#

of the error

#

Can you share the log

modern girder
#

ok

crimson snow
#

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

modern girder
#

hoo ok

#

but i set the correct endpoint.

crimson snow
#

Have you tried just hitting that endpoint with postman or some other tool?

#

Does it time out then too?

modern girder
#

ok let me try

#

yes, i tried

#

its working fine.

crimson snow
#

Those errors in your screenshot are from the stripe listen cli command?

modern girder
#

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

crimson snow
#

So is your server responding successfully? Or do you see errors in your server logs?

modern girder
#

no

crimson snow
#

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

modern girder
#

i didn't get you

#

do you want screenshots?

crimson snow
#

Yes. Can you share the logs for your local endpoint

#

For each of the requests that were made in that first screenshot

silk needleBOT
crimson snow
#

You said your local endpoint is responding successfully so I want to verify that

modern girder
#

ok

#

wait a sec

#

customer creates : stripe customer id

#

where i catching it from the stripe listen

crimson snow
#

You don't have like a server log with timestamps that shows each request made to it?

modern girder
#

no....

#

what its mean?

hexed nacelle
#

๐Ÿ‘‹ stepping in

#

Catching up

modern girder
#

hi

#

is it require to explain my problem again?

hexed nacelle
#

Nope was reading the above

modern girder
#

๐Ÿ˜ข

hexed nacelle
#

Looks like you are having an issue with handling webhooks, correct?

modern girder
#

yes

hexed nacelle
#

Okay so looks like you are only seeing this error on the CLI but your code is running fine

#

Correct?

modern girder
#

yes

#

bismarck..are you there?

hexed nacelle
#

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

modern girder
#

ok thank you...

#

and can you have any git repos for the integrating to a system. for my reference.

hexed nacelle
#

Hmm not sure what you mean by "integrating to a system"

#

Can you clarify?

modern girder
#

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.

hexed nacelle
#

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

modern girder
#

ok

#

but can i have demo git repo for using the connect accounts

hexed nacelle
#

You mean building a Connect integration?

#

What type of Connected Accounts? What type of payments?

#

I need more info to help you

modern girder
#

using the standard and custom

#

and for the payments i am using invoicing payments

hexed nacelle