#SteveLoyer

1 messages ยท Page 1 of 1 (latest)

visual gyroBOT
polar sorrel
#

Hi ๐Ÿ‘‹ we do not have prebuilt functionality for passing processing fees to your customers, you will need to build the logic and math for doing that if it is something you'd like to accomplish.

undone walrus
#

Okay So i am doing this already --- But my issue is i want to pass the discount before the proccessing fee (The discount is being applied via a coupon)

No matter how i seem to try and do this the processing fee always comes after processing fee

#

Sorry there is a little debugging code for a cart total im workign with now

polar sorrel
#

If you know the discount will be applied to the processing fee, can't you inflate the fee so when the discount changes it the value is returned to the expected amount?

undone walrus
#

I guess, but it would take quite a big of logic as discounts change by amount spent

polar sorrel
#

The other option is to rebuild your Coupons so they don't apply to whatever product you're using to represent the Stripe fees.

undone walrus
#

Can you elaborate a little more

visual gyroBOT
polar sorrel
undone walrus
#

Is the processing fee right now considered a product?

polar sorrel
#

If you're using Checkout Sessions, then everything has to be associated with a Product object. Either by being associated with a Price that is already associated with a Product, by you specifying a product via line_items.price_data.product, or by creating a Product adhoc by providing enough data in line_items.price_data.product_data.