Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Adding PayPal Fee for transactions

Adding PayPal Fee for transactions 15 years 9 months ago #3841

  • argonyx
  • argonyx's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi There,

I wanna have paypal payment and others, but if some one choose paypal, i need to charge a fee of 3% because paypal is gonna charge me for that transaction, I have modified the function \"displayPaymentForm\" on dtregister.php.

created new variable:
$amountpaypal = $amount +(($amount * 3)/100);

Replaced:
$p->add_field(\'amount\', \"$amount\");

For:
$p->add_field(\'amount\', \"$amountpaypal\");

It is working for me, but I just want to ask you if I am gonna have some issues with the IPN validation or something else?

or maybe if there is any better way to do this.

Would it be good to have the payment fee as configuration in the future.

Thanks

Please Log in or Create an account to join the conversation.

Adding PayPal Fee for transactions 15 years 8 months ago #3846

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Hello. That should not present any problems. We\'ll definitely be adding a convenience fee setting very soon. Thanks!

Please Log in or Create an account to join the conversation.

Adding PayPal Fee for transactions 15 years 8 months ago #4000

  • jjmcmullen
  • jjmcmullen's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0

argonyx wrote: Hi There,

I wanna have paypal payment and others, but if some one choose paypal, i need to charge a fee of 3% because paypal is gonna charge me for that transaction, I have modified the function "displayPaymentForm" on dtregister.php.

created new variable:
$amountpaypal = $amount +(($amount * 3)/100);

Replaced:
$p->add_field(\'amount\', "$amount");

For:
$p->add_field(\'amount\', "$amountpaypal");

It is working for me, but I just want to ask you if I am gonna have some issues with the IPN validation or something else?

or maybe if there is any better way to do this.

Would it be good to have the payment fee as configuration in the future.

Thanks


I NEED this function immediately ... can I get a little more instruction on "where" to put the variable? I\'m not totally ignorant about code ... but this is a little beyond me figuring out where to put it in thousands of line of code.
Line number please?

Please Log in or Create an account to join the conversation.

Adding PayPal Fee for transactions 15 years 8 months ago #4002

  • Ginjg
  • Ginjg's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 160
  • Thank you received: 0
due to paypal\'s TOS you can\'t actually charge for their fee.

it is safer to calculate the price to include the paypal fee into the flat price and round to the nearest $.

Remember to calculate what your rate is 96.5% of rather than rate +3.5%

Please Log in or Create an account to join the conversation.

Adding PayPal Fee for transactions 15 years 8 months ago #4003

  • jjmcmullen
  • jjmcmullen's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
OK ... Thanks! I appreciate your time!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.263 seconds