Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Auto add 5% to PayPal orders...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 03-02-2006, 07:18 AM
  Raptor's Avatar 
Raptor Raptor is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 131
 

Default Auto add 5% to PayPal orders...

This will add 5% to PayPal orders so you don't lose out when the customer orders via PayPal. Not sure if this is actually worthy of being in here, but I thought I would share anyway.

In payments/ps_paypal.php

Find:
Code:
$u_phone = preg_replace('![^\d]+!', '', $userinfo["phone"]);

Add below:
Code:
$paypaltotal = $cart["total_cost"] * 1.05;


Find:
Code:
<input type=hidden name=amount value="<?php printf("%0.2f", $cart["total_cost"]); ?>">

Replace with:
Code:
<input type=hidden name=amount value="<?php printf("%0.2f", $paypaltotal); ?>">

Seems to work OK for me using version 4.0.17.
__________________
X-Cart Gold Plus v4.7.12
ReBOOT ReDUX Theme
Reply With Quote
  #2  
Old 03-09-2006, 01:40 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

Works great.

Only the invoice is not updated. So the customer won't see the total price he has to pay on the invoice. But only on Paypal.
Does anyone know how to update the invoice also?
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #3  
Old 08-14-2006, 02:26 AM
  Raptor's Avatar 
Raptor Raptor is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 131
 

Default

im not sure how to do that - could someone look at this pls ?
__________________
X-Cart Gold Plus v4.7.12
ReBOOT ReDUX Theme
Reply With Quote
  #4  
Old 08-18-2006, 10:16 PM
 
g0t0pless g0t0pless is offline
 

eXpert
  
Join Date: Jul 2003
Posts: 360
 

Default

I would not recommend using this script.

It's against Paypal's policy to charge a fee for using their service. If they find out about it, you'll have your account pulled.

Also, as a buyer, I would not buy from you if you charged me a fee to use thier service for your convenience.

I can't find it in their policy off hand, but I know it's in there soemwhere.
__________________
4.1.7
X-Cart Gold
Product Configurator Module
Advanced Order Management Module
RMA Module
Feature Compare Module
Blue Dream theme by 7Dana.com
Reply With Quote
  #5  
Old 10-28-2006, 03:00 AM
 
bigmaggot bigmaggot is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 74
 

Default Re: Auto add 5% to PayPal orders...

Think that policy was an ebay policy so you didn't charge extra for paying by paypal. Not suprisingly really considering ebay wants everything paid by paypal as they are the same company. I can't think of any reason why you couldn't charge a service charge for using paypal, I know many other companies do.

Andy
__________________
X-Cart Gold v4.1.11
Reply With Quote
  #6  
Old 10-28-2006, 04:32 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Auto add 5% to PayPal orders...

As a customer, if you surcharge paypal or credit cards, I'm gone...

Merchant fees are part of the cost of doing business.

And it IS against paypal policy to surcharge to cover fees...

Quote:
PayPal users are not permitted to impose a surcharge or any other fee for accepting PayPal as payment. For more information, please see Section V of the Payments (Sending, Receiving, Withdrawing) Policy in PayPal's User Agreement.

The way around this is to offer a "discount" for specific payment methods... so a "normal" transaction has your surcharge built in, and other types of transaction get a "discount"... I still think this is bad.

In my opinion, If you choose to offer an expensive payment gateway, it's not the customer's problem - it's the merchant's. You can get a 2% merchant account with low monthly fees. It's the cost of being in business.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 02-08-2007, 01:58 AM
 
basslion basslion is offline
 

Newbie
  
Join Date: Jan 2007
Posts: 8
 

Default Re: Auto add 5% to PayPal orders...

Quote:
Originally Posted by carpeperdiem
As a customer, if you surcharge paypal or credit cards, I'm gone...

Merchant fees are part of the cost of doing business.

And it IS against paypal policy to surcharge to cover fees...


The way around this is to offer a "discount" for specific payment methods... so a "normal" transaction has your surcharge built in, and other types of transaction get a "discount"... I still think this is bad.

In my opinion, If you choose to offer an expensive payment gateway, it's not the customer's problem - it's the merchant's. You can get a 2% merchant account with low monthly fees. It's the cost of being in business.


Yes merchant fees are the merchants problem, but either we include it in the selling price or charge a fee for it. either way the customer pays it. At least having a lower advertised price prior to checkout, you will attract more buyers to go to checkout and if they dont like the fee, they can change to a different payment method.

If Paypal is the most convenient way to pay online, then what do they have to worry about.
__________________
LiteCommerce Version 2.2.21
Reply With Quote
  #8  
Old 02-08-2007, 02:31 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Auto add 5% to PayPal orders...

Quote:
Originally Posted by NightFire
Works great.

Only the invoice is not updated. So the customer won't see the total price he has to pay on the invoice. But only on Paypal.
Does anyone know how to update the invoice also?

greets,

in 4.1.x, you can add the surcharge for each payment method in admin and it will appear on the invoice. is this not the case for other versions?

i do however agree that it's not a good idea to pass on merchant acct fees to the consumer. i can't imagine walking into a grocery store and being told i'd have to pay a flat transaction charge and a % of the sale as well.

depending on how large your average ticket is, why not just add a standard markup to the shipping/handling fee?
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #9  
Old 02-08-2007, 04:08 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default Re: Auto add 5% to PayPal orders...

Quote:
Originally Posted by neaisha
greets,

in 4.1.x, you can add the surcharge for each payment method in admin and it will appear on the invoice. is this not the case for other versions?

i do however agree that it's not a good idea to pass on merchant acct fees to the consumer. i can't imagine walking into a grocery store and being told i'd have to pay a flat transaction charge and a % of the sale as well.

depending on how large your average ticket is, why not just add a standard markup to the shipping/handling fee?

Unfortunately this is not possible for the 4.0.X version. This feature was built in later in the 4.1.x version. But I totally agree with everyone about charging additional costs, its the risk of being in business.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #10  
Old 06-10-2007, 09:43 PM
 
thegrandchawhee thegrandchawhee is offline
 

Member
  
Join Date: Jun 2007
Posts: 10
 

Default Re: Auto add 5% to PayPal orders...

The reason that it is against paypal's policy is that it is actually against VISA, MC, etc's policies to charge a fee to use their services. If caught they will revoke your merchant accounts. The way around it is to add to shipping and handling. Even some brick and mortar stores do charge you for using credit - and to get around the policies it has to be an administrative fee such as a handling charge.
__________________
Version 4.1.7
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:58 AM.

   

 
X-Cart forums © 2001-2020