Paypal Express Problems

Hi,
I have two issues with Paypal express payment; (i'm on 4.3.9 version)
Problem 1: I charge no surcharge for payments with Paypal, but the payment notification email from PayPal shows the line "Surcharge" on the subtotal, it's €0, but it still shows and I don't want it to show.
Helpdesk told me to change a piece of code in Design->Documents->Invoice but my software version doesnt have that option. Is there another way to do it?
Problem 2: When a customer pays with paypal, me and him or her are getting 2 notification emails, one stating that the order is open and the next one processed, this causes that some customers don't know what is the correct order status, if open or processed.
I have this solved for paypal standard, but the code is different under app/addons/paypal/payments/paypal_express.php. Is there a solution in order for the customer only get 1 email notification with the final transaction result, and not the "Open" status.
Thank you!

I just checked one of my PayPal invoices and it doesn't show a "Surcharge" line. Look at the payment method for PayPal and make sure the Surcharge title is blank.

In order statuses, edit the Open status and uncheck "Notify customer" and Notify orders department".

The surcharge line is black on the payment method, this is probably a bug on my 4.3.9 version.

As for unchecking the notify customer I cant do it as i use the Open status for offline payment methods.

I can only recommend upgrading then. The latest version allows to set the PayPal order status to Incomplete instead of Open.

1. Try to comment out the following part of the code in the app/addons/paypal/paypal_express.functions.php file

    if (!empty($data['payment_surcharge'])) {
        $order_data['L_PAYMENTREQUEST_0_NAME' . $product_index] = __('surcharge');
        $order_data['L_PAYMENTREQUEST_0_QTY' . $product_index] = 1;
        $order_data['L_PAYMENTREQUEST_0_AMT' . $product_index] = $data['payment_surcharge'];
        $data['subtotal'] += $data['payment_surcharge'];
    }

2. In the same try to please replace

fn_finish_payment($order_info['order_id'], $pp_response);

with

fn_finish_payment($order_info['order_id'], $pp_response, false);

Thanks, I'm going to try this solution ecom.

Many huge thanks ecomLabs, it works!!!! Not only the surcharge is gone but it's not sending two emails for the same order either, it's a miracle!!

By the way, can I also take the "insurance" line from paypal invoices?

You are welcome!

Many huge thanks ecomLabs, it works!!!! Not only the surcharge is gone but it's not sending two emails for the same order either, it's a miracle!!

By the way, can I also take the "insurance" line from paypal invoices?

What is "insurance line"? Please clarify

Please check the print screen: http://prntscr.com/jgkmws

There is a line on the paypal invoice, before "Total" that states "Insurance"

Edit: this only happens when the customer uses paypal to pay with credit card without opening a paypal account.

Sorry, but I do not see any code related with insurance in the PayPal addon. May be 3rd party module can add this line?

No, I only have the default Paypal addon, this is weird as it only happens when people pay with credit card using paypal express without an actuall paypal account.