Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to add custom fee to checkout? #1812

Open
harnerdesigns opened this issue Apr 17, 2024 · 2 comments
Open

Possible to add custom fee to checkout? #1812

harnerdesigns opened this issue Apr 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@harnerdesigns
Copy link

Hi BC Team,

I'm extending checkout-js for a custom checkout for a client. They want to be able to charge an additional fee based on which payment method is selected.

I was wondering if it's possible to add/remove a custom fee through the Checkout Service? I'm using the updateCheckout() function already but that seems to only be able to update Customer Notes.

Any insight or docs y'all have here would be amazing!

Thanks!

@valentindellangela
Copy link

Hi,

This isn't possible at the moment.
Perhaps an option could be to create a custom item using our management API?

@animesh1987 animesh1987 added the enhancement New feature or request label Apr 18, 2024
@harnerdesigns
Copy link
Author

@valentindellangela I was looking into that, and we can definitely add custom line items (although I'm not sure if there's an easy way to do that inside the checkout, vs posting to the management API from our external server and then refreshing the user's page).

The concern I have with that is that there's not a good way to track a cart for changes, and update the amount if a different shipping method is selected (adjusting the cart total and thus needing to adjust the fee amount)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants