Hi everyone,
I’m struggling to connect Stripe’s Price API with my Bubble app.
No matter what I try, I keep getting the following error when sending a value to Stripe:
Error:
Stripe - Prices error: the parameter unit_amount cannot be empty
My setup:
- I have a number input field for price (monthly plan, yearly plan, etc).
- Content format is set to integer.
- When I input a value (e.g.
6980), it definitely appears in a Text element, so the value exists. - In the API Connector, my POST body includes:
unit_amount=<Input ¥6,980's value:converted to number>¤cy=jpy&recurring[interval]=month&product_data[name]=月額プラン - Body type is Raw and Content-Type is
application/x-www-form-urlencoded. - I tried both direct referencing (
<Input ... value>) and using a custom state (unit_amount=<unit_amount>), but both failed. - Even when I enter a hardcoded value (e.g.
unit_amount=1234), it works. But dynamic values from the input never get through. - I also tried using
:formatted as numberand checked that no commas or non-numeric characters are present.
What I’ve already tried:
- Confirmed the Input field’s value is not empty and is a pure integer.
- Added
:converted to numberfor the value in the API call. - Checked with
Textelement to confirm the value is present on screen before submission. - Removed all plugins (like Toolbox Expression) that might interfere.
- Refreshed and even rebuilt the Input box.
- Reinitialized API calls.
- Changed API Connector Body type (Raw, Form-data, etc).
- Hardcoded value works, dynamic input does not.
Screenshots
(see attached: workflow, API Connector settings, input config, error, and value displa
y)
If anyone has faced a similar issue or has any ideas, I’d appreciate your advice! Thank you.







