Forums / PayPal Express Checkout support / FMF: Is there a reason that the configuration setting is not made available?

FMF: Is there a reason that the configuration setting is not made available?

Views: 7,262

Results 1 to 10 of 10
24 Nov 2013, 1:46 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,111
Plugin Contributions:
56

FMF: Is there a reason that the configuration setting is not made available?

Looking through the v1.5.1 PayPal Express Checkout module (/includes/modules/payment/paypalwpp.php), there's a configuration key (MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS) to enable the Fraud Management Filter interface with PayPal but it's never actually displayed in the admin because it's not present in the array returned by the keys() function of the class.

Is this a simple omission or is the control not made available because the FMF interface hasn't been fully fleshed out?

1 May 2020, 7:45 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: FMF: Is there a reason that the configuration setting is not made available?

Same situation still exists in 1.5.7 but PHP7.3 throws a warning.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

1 May 2020, 8:06 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: FMF: Is there a reason that the configuration setting is not made available?

This looks like a bug - please put an issue in Github.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

2 May 2020, 6:13 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: FMF: Is there a reason that the configuration setting is not made available?

It appears that the file that creates the configuration in the database is not sequenced correctly.
Line 686 of includes/modules/payment/paypalwpp.php```
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Fraud Mgmt Filters - FMF', '[B]MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS[/B]', 'No', 'If you have enabled FMF support in your PayPal account and wish to utilize it in your transactions, set this to yes. Otherwise, leave it at No.', '6', '25','zen_cfg_select_option(array('No', 'Yes'), ', now())");

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

6 May 2020, 11:35 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: FMF: Is there a reason that the configuration setting is not made available?

the option still does not show in the PayPal setup
See https://github.com/zencart/zencart/commit/63a7e8a4d46891cc0d6d1012a61ce8cfa9581300

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Jun 2021, 4:13 PM
#6
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: FMF: Is there a reason that the configuration setting is not made available?

DrByte:

See https://github.com/zencart/zencart/commit/63a7e8a4d46891cc0d6d1012a61ce8cfa9581300

It looks like this fix is in 1.5.7c?

I am getting this warning message:

--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS - assumed 'MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS' (this will throw an Error in a future version of PHP) in /home/website/public_html/includes/modules/payment/paypalwpp.php on line 390.

23 Jun 2021, 9:18 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: FMF: Is there a reason that the configuration setting is not made available?

shrimp-gumbo-mmmhhh:

It looks like this fix is in 1.5.7c?

I am getting this warning message:

--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS - assumed 'MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS' (this will throw an Error in a future version of PHP) in /home/website/public_html/includes/modules/payment/paypalwpp.php on line 390.

As I recall, yes this is/was fixed in 1.5.7c, can you please tie the above posted information together? It isn't clear as a new individual to post to this thread how the association to 1.5.7c's fix to what is reported in this quoted post relate to each other and/or what is being sought.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

24 Jun 2021, 6:11 PM
#8
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: FMF: Is there a reason that the configuration setting is not made available?

mc12345678:

As I recall, yes this is/was fixed in 1.5.7c, can you please tie the above posted information together? It isn't clear as a new individual to post to this thread how the association to 1.5.7c's fix to what is reported in this quoted post relate to each other and/or what is being sought.

I didn't whether to post in the bug fixes for 1.5.7c or not.... I saw this thread which looked related. I am getting the message now in 1.5.7c of this variable being an issue in future php 8???

Thank you!

24 Jun 2021, 6:17 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: FMF: Is there a reason that the configuration setting is not made available?

--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS - ...

Remove and reinstall PayPal to fix this issue.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Jun 2021, 7:20 AM
#10
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: FMF: Is there a reason that the configuration setting is not made available?

swguy:

--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALWPP_EC_RETURN_FMF_DETAILS - ...

Remove and reinstall PayPal to fix this issue.

Thank you!