Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Paypal Express Problems Rate Topic   - - - - -

 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 435 posts

Posted 10 May 2018 - 10:57 AM #1

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!

4.3.9  


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3639 posts

Posted 10 May 2018 - 04:19 PM #2

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".



 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 435 posts

Posted 10 May 2018 - 06:02 PM #3

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.


4.3.9  


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3639 posts

Posted 10 May 2018 - 11:09 PM #4

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



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17821 posts

Posted 11 May 2018 - 05:44 AM #5

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);

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 435 posts

Posted 11 May 2018 - 08:34 AM #6

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


4.3.9  


 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 435 posts

Posted 11 May 2018 - 09:22 AM #7

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?


4.3.9  


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17821 posts

Posted 11 May 2018 - 01:05 PM #8

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 435 posts

Posted 11 May 2018 - 01:09 PM #9

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.


4.3.9  


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17821 posts

Posted 14 May 2018 - 06:21 AM #10

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 435 posts

Posted 14 May 2018 - 10:12 AM #11

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.


4.3.9