Hi team! What’s the best way to add the additional...
# suitecommerce
c
Hi team! What’s the best way to add the additional fee on the checkout when user selects the credit card as a payment option. I’m sure this can be done through scriptable cart and checkout but what is the best way to do it ? Do I need to add any line item(markup item) to add the additional fee or please let me know, the best way to do it ? Thanks!
s
I had to extend "OrderWizard.Module.PaymentMethod.Selector", and "OrderWizard.Module.CartSummary", modules in my case and then add an item to the order. in the afterSubmit UE. This would probably the worst solution so I'm interested to see what other's approach here.
c
Thanks for the response @suiteExperimenter but in this case customer cannot see the additional charge on the checkout summary. If we use scriptable cart and checkout then the charged derived automatically from the backend.
s
I access the model to change the values of the displayed amounts and then retrigger the change in the model to see the change. but yes, I won't recommend my solution.
c
Got it.
After adding the extra charge, you might want to pop a modal to inform the customer of the CCD charge.
🙌 1
c
Thanks @Chris for your insights on this. Is it possible to add the markup item using addLine method? If that is the case, I don't think even we need scriptable cart and checkout functionality?
c
Yea, you can add any item you like that way. I like using this method b/c all the regular event view updates happen automatically.
thankyou 1