Update Cart price when checkbox is Checked

Hello Folks ,

I am new to Shopify and building a shopify app using checkout UI extension and Pre purchase extension in shopify what I am making is - Simple Checkbox in which when user check it simply Add xyz amount to cart as a TIP .. I have made the checkbox on checkout page using app but Don’t have any idea how to add amount when user check it and cart is updated ..please let me know the solution for this problem . UI is completed only updation of cart is left .

Thanks In Advance
Mohit

Hi there :waving_hand:

At this time the only way to add a tip, would be to create a “Tip” product and then add that product to the cart when the check box is selected.

Stay tuned for updates in this area by subscribing to the developer changelog.

Thank you for the reply .
Just wanted to know .. how i Can access Prisma data (database ) which I have used in making in making app using remix in Checkout UI extension .
Thanks in Advance