Page 1 of 1
Weird table Payment method for Paypal
Posted: Sun Aug 01, 2021 5:42 pm
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
Re: Weird table Payment method for Paypal
Posted: Sun Aug 01, 2021 5:59 pm
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.
Re: Weird table Payment method for Paypal
Posted: Sun Aug 01, 2021 6:05 pm
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.
Re: Weird table Payment method for Paypal
Posted: Sun Aug 01, 2021 6:47 pm
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,