Weird table Payment method for Paypal

Open to all! Ask other shopowners for help.
Post Reply
lambro28
Member
Posts: 62
Joined: Sun Jan 03, 2021 2:47 pm
Phoenix Version: v1.1.0.6
Has thanked: 11 times
Been thanked: 8 times

Weird table Payment method for Paypal

Post by lambro28 »

Hi,
I have just got paypal standard working on our live site, and when the customers select and pay via Paypal, the payment method gets stored as " <img src="https://www.paypalobje " in the orders table payment method field.

As far as I know I have not touched any of the paypal modules / files / etc.

Can somebody point me in the direction of where it is going wrong please.

V1.0.8.0
PayPal App v5.018
Last edited by lambro28 on Sun Aug 01, 2021 6:05 pm, edited 1 time in total.


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Weird table Payment method for Paypal

Post by ecartz »

lambro28 wrote: Sun Aug 01, 2021 5:42 pm V1.8.10
I don't know what that is. Given where you put it, I would expect it to be a Phoenix version number, but it only has three numbers and Phoenix has four. The latest being 1.0.8.5.

You might check if you have https://github.com/CE-PhoenixCart/Phoen ... c197e34dec

That would not be present in Phoenix v1.0.7.10.
lambro28
Member
Posts: 62
Joined: Sun Jan 03, 2021 2:47 pm
Phoenix Version: v1.1.0.6
Has thanked: 11 times
Been thanked: 8 times

Re: Weird table Payment method for Paypal

Post by lambro28 »

ecartz wrote: Sun Aug 01, 2021 5:59 pm
lambro28 wrote: Sun Aug 01, 2021 5:42 pm V1.8.10
I don't know what that is. Given where you put it, I would expect it to be a Phoenix version number, but it only has three numbers and Phoenix has four. The latest being 1.0.8.5.

You might check if you have https://github.com/CE-PhoenixCart/Phoen ... c197e34dec

That would not be present in Phoenix v1.0.7.10.
Sorry typo, V1.0.8.0

I seam to have that code in the that file.

Also checked my templates files and nothing in there.
lambro28
Member
Posts: 62
Joined: Sun Jan 03, 2021 2:47 pm
Phoenix Version: v1.1.0.6
Has thanked: 11 times
Been thanked: 8 times

Re: Weird table Payment method for Paypal

Post by lambro28 »

Cheers Matt, you pointed me in the right directed.

Lines 150 / 151 were

$order->info['payment_method_raw'] = $order->info['payment_method'];
$order->info['payment_method'] = '<img src="https://www.paypalobjects.com/webstatic ... -100px.png" borde="0" alt="PayPal Logo" style="padding: 3px;" />';

so have changed to

$order->info['payment_method_raw'] = $order->info['payment_method'];
$order->info['payment_method'] = 'PayPal';

Checked my table, and the payment method was only varchar 32, so it cut the url short.
As I have no need for the logo, just plain text, it works for me,


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply