Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
822 views
in Technique[技术] by (71.8m points)

WooCommerce: Add fees to card based on payment gateway selected

I need to add a credit card fee % based depending on what payment method the customer selects at the shopping cart in WooCommerce.

This needs to be added to the shopping cart total so that it sends the total amount including the fee to the payment gateway.

For example if the shopping cart total was £100.

If the customer selects 'Credit Card' payment I would like to add 2% to the transaction making the shopping cart total £102. This amount would then go to the external credit card provider for processing as the actually card processing is handled by them (WorldPay_).

I would also like to add a different amount for Paypal 3%.

If the customer selects Cash on Delivery or Bank Transfer I wouldn't add any fees.

There is no WooCommerce plugin that does this. Closest I've got is this thread.

http://support.woothemes.com/entries/22716621-Credit-card-fees

Thanks in advance for any help you can provide.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...