Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you add a percentage ?


oilzzz

Recommended Posts

Posted

I would like to charge a percentage of a sale for one payment module, however, I cannot figure it out nor have I found posts on this subject (that help).

 

For example, if the total was $100 and the customer selected a payment module that has a 3% surcharge, then I would like the checkout_confirmation page to indicate $103

Posted

Sorry I don't have say a module or piece of script to add.

 

But if you handy with perl or php simply hack your fav payment module.

 

Just add an are to accept the number you want then do the math on it.

 

Example.

 

Price times percent to charge = percentage

($2.00 X $0.06 = $0.12)

Price plus percentage = total

($2.00 + $0.12 = $6.12)

Posted

Which payment module would you like to have this functionality?

 

--Matt

I love deadlines. I like the whooshing sound they make as they fly by. ---Douglas Adams

Posted

Well I for one not being the original poster however would tink it'd be nice to have a piece of code that we could drop into any module. I personally would like to see it in paypal and credit cards and checks and money orders. the three in my opinion basics.

Posted

Better check the rules and laws before doing this .... most of the countries you cant charge extra for payment !!!

 

The_Bear

Posted

Ah but the ability to do so does not violate any laws. It's the using of said ability that Might violate a law and that is up to the shopping cart owner to deal with.

 

};>)

Posted

Basically, I was thinking of using the PayMate module in use for Australians. Two modules available

http://www.oscommerce.com/community/contri...ions,837/page,4

http://www.oscommerce.com/community/contri...ions,896/page,5

 

The Australian Government recently approved businesses to charge a surcharge on credit cards if they wished.

 

Because paymate charge a percentage (like a lot of others) I wanted to charge a percentage of my own to recoup the charge by paymate. For example, if paymate charge 1.5% then I charge 2.5% and it balances (picked those figures for example only)

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...