Forum Academy Marketplace Showcase Pricing Features

Discrepancy between stripe fee and database

I believe there is an error in the way a stripe fee is being saved to the database.

Say a product is $100. I create a workflow to charge a user’s saved CC and set the fee to Product’s total * .05

This shows as 5.00 in stripe, which is correct.

Next, I attempt to save this fee to my database as a result of the previous step. However, this figure saves as 500 in the database. When I attempt to show this figure as a currency, it therefore displays as $500.00

Stripe does things with cents, so you should divide by 100. I’ll think about it though.

Okay. I thought I read that in their documentation somewhere. Just wanted to double check.