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
Weird table Payment method for Paypal
-
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
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
Sorry typo, V1.0.8.0ecartz wrote: ↑Sun Aug 01, 2021 5:59 pmI 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.
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
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,
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,