Thanks for this integration, a fantastic addition to Wappler again!!
Unfortunately, I am getting some errors on the server side integration.
I got a data storage cart already setup and followed the tutorial for server side stripe integration thoroughly. However, there are 2 problems up til now:
I have to enable the output for all the server actions to prevent getting this error:
Id is missing in session response.
When the output is enabled for all actions, I am getting this error that I don’t know a solution for:
Error:Missing required param: line_items[0][currency].
The first error is thrown by the AC Stripe element, the second one by SC.
The stripe API keys are valid for sure btw.
What am I doing wrong and how can this be solved? Thanks for your help in advance.
If the output is only disabled for the createCheckoutSession.id step the error Id is missing in session response occurs on the frontend when clicking the pay button.
I have to enable all outputs to prevent this error.
Here's my SC:
The second error is also shown after clicking the pay button on the checkout page as a notification. It has "Error:" as a prefix, that's why I know it's the SC error being passed on:
Is that necessary when using server side integration too? I didn’t setup any products in Stripe. I don’t want to have to add products to Stripe at all actually. I got a shop made in Wappler with a shopping cart and everything and only want Stripe to handle the payment.
I have searched everywhere and have come to the conclusion that products need to be setup in Stripe. This is easy to de, all it needs is a name, price and a unique ID. That way when a payment is made, no one can meddle with the price, e.g. pay a zero amount. Suits me fine. Set up an automatic procedure to enter the already existing products to Stripe. After that, each time a product is added to the site, also add it to Stripe.
I would certainly find this very useful too. It's probably not feasible for my customers to store products in Stripe. I imagine this situation will be typical:
I’m currently using Stripe on a couple of sites, based on @max_gb’s excellent tutorial.
What I’m hoping is that Wappler’s features can be used flexibly, to make it easier to customise the way payments are made - in particular, to place a hold on a card (to separate authorisation and capture of payments). I appreciate this is rather specific, but if the principals could be demonstrated, that would be very useful.
Many thanks @max_gb. I tried including ‘Manual’ with the input data before, but couldn’t get it to work. I haven’t tried the new Stripe features yet - but this seems to be exactly what I need.
I have entered all my products into stripe using the price method with price_id line items and verified that USD was also entered as a line item. I think it is looking for the currency line item along with the price id and quantity. any ideas?
Yes it’s different when you don’t have products defined in Stripe. The checkout requires a different flow.
We are working on docs explaining this in cases when you don’t have the products and prices defined in Stripe.
for testing purposes, I also tried adding a line item for currency which made no change. I noticed that someone else had the same error did that issue get resolved by updating the product info? I included my stripe test data for you to see.