#aleclewis

1 messages · Page 1 of 1 (latest)

lyric sunBOT
high elk
#

Is the calculatedPrice somethign that you have before you call your /payment-sheet endpoint, or after?

azure panther
#

Before!

high elk
#

Gotcha - so then you'd change your client-side code that making your request to the /payment-sheet endpoint to also pass along that amount you have

azure panther
#

I figured as such.

#

I've checked the API on postman and it doesn't seem like it's a valid url.

high elk
#

Which part doesn't seem to be a valid URL?

#

Have you logged amountInCents in your server-side code to confirm it's correct?

lyric sunBOT
azure panther
#

I have logged it still nothing shows up.

wet gate
#

You have calculatedPrice: price in your clietn request body, but where does price come from? Have you looked at the outgoing requests in your browser to see what they look like?

#

Do you mean to have price = calculatePrice() above that fetch?