Yeah the ‘Pay for Order’ endpoint can have multiple payment methods. For the site I am working on there is bank transfer and stripe, obviously we want to charge an extra 3% for stripe.
I have writen some code to force customers to select their payment option before arriving at the ‘Pay for Order’ page. If they select ‘credit’ I add a fee to the order (using php). Unfortunately the code I have written will only work for the site it has been written for.
Ideally I would rewrite the checkout.js (from woocommerce) script to work on the pay for order page. However that would take a fair amount of effort so will hopefully someone at woo-commerce will do it in the future.
-
This reply was modified 5 years, 6 months ago by LABCAT.