Stripe Integration Part 4b - The Basic Payment Action - Server Connect Page

Thank you @Hyperbytes Brian
I found a solution
If you want to have schema, write ‘tok_gb’ when you definie API Schema for post_stripeToken and you ll have schema (usefull for insert after)
Thanks

Hello @Hyperbytes,

I have a problem with stripe integration. I followed all your steps but I am having an error about the amount.

When I use the variable {{itemprice}} is receive an error 400.

Capture2

However, when I put manually the number like 5000. everything works. Do you have an idea or any thing you can suggest for me to make it work.

Capture

Thank you.

How are you storing the price {{itemprice}}? If it’s 50.00 in your database, you need to either store it as 5000 in cents or multiple your $50.00 *100

The amount does not matter. The price is not going to stripe when I am using the variable. I had to go directly insert into the server action the price I want, for the result to display.

Looks like a string is being send instead of a number

image

Ensure the appropriate POST variables are set to Type Number or use .toNumber() to change the data type

Thank you. I fixed the situation by removing the space.