How do I calculate a fee percentage to a transaction upon submit to Paypal? - paypal

I'm trying to calculate a fee on an amount that users want to pay via paypal. If they want to donate $20 I need to be able to calculate 2.9% fee so that when the user clicks the donate button to launch paypal they can see the amount with the fee included. I haven't been able to figure it out reading the various questions/answers. Here is the code for the button. Any help would be greatly appreciated! After clicking save it doesn't look like the code is being displayed. It's html code so that's what I'm looking for, the code to calculate the fee percentage. Thanks again!

(donation amount * fee percentage) / 100
This will give the fee amount based on the percentage. That'll be...
($20 * 2.9) / 100 = $0.58

Related

Magento - PayPal Plus and Zero Subtotal Checkout

I'm having problems with Zero Subtotal checkout and Paypal Plus. I have some products with Zero cost, and when I try to buy it the button "Place Order" is disabled.
But when I disable Paypal Plus, it works normally.
I'm using Magento 2.1.5 and this module: https://github.com/i-ways/magento2-paypal-plus
Someone already suffered with this issue?
Amount is always requested to more than zero. You can set 0.01 (or the equivalent minimum amount for other currency) if you want to show your customer free payment. Or, you can refund.

Discount with PayPal REST API

When submitting a payment via PayPal's REST API a collection of Items must be provided where the price * quantity = total.
The following screen grab from Fiddler illustrates my problem:
The value for the "price" element must be in the format "0.00". However, in the case above I started with a price for loose photos of "£0.08" then added 20% VAT to give "£0.096". 300 * £0.096 is £28.80, so the total cost of the order is given correctly. Problem is, I have no way to present the unit cost to PayPal. Could anyone please advise how to solve this problem?
I had similar issues with shipping options and chose to write my own shopping cart code which displays individual items selected plus tax and shipping options. A 'pay using PayPal' button on the form simply submits the total price to PayPal. This gives me total flexibility - I recently switched to free shipping on orders over $x. Also the shopping cart is much faster and responsive than using Paypal for every item selected - so I get more orders going through to completion - always a good thing!

Total amount in service order to be asked on paypal as well? How?

Sorry for the confusing title. Here's my problem -- I am using contact form 7 and I have added paypal in my checkout option but how will it able to record the total amount of the service ordered and be asked for payment? Because it just redirects to paypal with a fixed rate that I put upon creating the button. Can anyone help? Thanks.
PS: This is an example.
If someone wants to avail the service on my site and they want an additional service, they select that service and it will add to the total charge and upon clicking the pay now button, it will charge the total amount on paypal then they pay.
You could have your page dynamically populate the amount prior to redirecting the buyer over to PayPal. To be able to do this, you would need to create a non hosted clear text button. Another option would be to create a buy now button and enter in the amount as 0.00, this would prompt the buyer to update the amount before they proceed to make the payment on the payPal page.

Can we subtract a value to the total amount of a payment in zen cart?

I have a zencart web site in which I need to subtract some amount from the total value of the payment befor going to the paypal site to pay it. Can I do that in zen cart?
Is there any plug in for that?
Take a look at Group Discounts - this shows you how to reduce the total value of the cart by a percentage for certain groups; you could base your price reduction on this module.

How to calculate paypal fees, 2.9% +0.30 doesn't work for some cases variable FEEAMT in checkout method doesn't match

thanks for reading this.
I am implementing paypal checkout in my website it is working but i want to make a simple fees calculator for paypal in order to help the user, i went to paypal and they said their fees amount is 2.9% +0.30 fixed, but it is not working for some cases, for example: deposit $1.34
2.9 % = $0.04 rounded + $0.30 = $0.34, so i should get $1 credited but paypal send in its response in the field FEEAMT which indicate the "PayPal fee amount charged for the transaction" 0.35,
what i am doing wrong?
Thanks in advance.
Maybe paypal add Cross border fee of 1.0%.
Some pages that make that calculations and can help you see what's going on.
PayPal Fee calculator: http://thefeecalculator.com/
PayPal ref: https://www.paypal.com/cgi-bin/webscr?cmd=_display-fees-outside