Bug #797
openTest envinment not providing payment screen
0%
Description
Hi Leo,
As you have already noticed, the test environment doesn't show the credit card interface in test mode. While waiting for my call from Braintree, here is what I have discovered... Hopefully, you can see the issue.
(1) In the production environment, you can see the credit card interface. You can see the response as 'production' via editing cgi-lib/handler.pl
(2) I see the error "Use of uninitialized value in numeric gt (>) at /usr/local/share/perl/5.18.2/Net/Braintree/HTTP.pm line 5" when using the sandbox, but not as 'production'.
Thank you Leo!!
--George
Files
Updated by George Howington 2 months ago
Hi Leo,
I found a work-around by using the production server settings. In my work-around, I've commented out the sandbox settings n the handler.pl file:
cgi-lib/handler.pl: Comented out sandbox
In testing, I run the account as a test account, which does not charge cards. If possible make all accounts run as 'test accounts' when run as a dev server. In your review, the flag is set in the affFeatures table.
Thanks Leo!!
Updated by George Howington about 2 months ago
- File clipboard-202502281519-0fd6d.png clipboard-202502281519-0fd6d.png added
- File clipboard-202502281519-tvkma.png clipboard-202502281519-tvkma.png added
- File clipboard-202502281519-wmgjn.png clipboard-202502281519-wmgjn.png added
- Status changed from QA to In Progress
- Assignee changed from George Howington to Leo Esaki
Hi Leo,
Please address the following issues.
(1) When purchasing a policy as a 'full account,' such as under "IIICOM," the policy produced is voided. This should be 'non-voided'.
(2) When trying to create an endorsement,I receive an error when running as a credit card purchase.
Thanks,
--George
Updated by Leo Esaki about 2 months ago
- Status changed from In Progress to QA
- Assignee changed from Leo Esaki to George Howington
Hi George.
I fixed those 2 issues. Please take a look.
https://gitlab.com/nfp-cross-border/polmaker-v3/-/merge_requests/386
Thanks,
Leo
Updated by George Howington about 2 months ago
- Status changed from QA to In Progress
- Assignee changed from George Howington to Leo Esaki
Hi Leo,
This is looking good so far, but I am concerned by seeing items that have already been corrected. When you have a moment, please merge the master branch into this test branch.
Thanks,
--George
Updated by Leo Esaki about 2 months ago
- Status changed from In Progress to QA
- Assignee changed from Leo Esaki to George Howington
Hi George.
I merged master branch into this branch. But everything's already up to date. Please let me know if you have any other problems.
Thanks,
Leo
Updated by George Howington about 1 month ago
1=w2w
2=agent
Initial purchase: - AS A TEST SERVER
-------------------
----------------------------- AUTO
--
As a "test user"
--
Agent:
Needs to show voided - pass
two records need to be created - pass
salestype=2 - pass
41101171
w2w:
Needs to show voided - pass
two records need to be created - pass
salestype=1 - pass
41101170https://13549425-review-398-fix-br-1dncba.staging.mexicoinsuranceonline.com/mexico-wc/app/comp/step_5.mhtml
--
As a 'real user'.
--
Agent:
one record need to be created - pass
salestype=2 - pass
10030777
w2w:
one record need to be created - pass
salestype=1 - pass
41101172
----------------------------- BOAT
--
As a "test user"
--
Agent:
Needs to show voided - pass
two records need to be created - pass
salestype=2 - pass
2100000001902
w2w:
Needs to show voided - pass
two records need to be created - pass
salestype=1 - pass
2100000001901
--
As a 'real user'.
--
Agent:
one record need to be created - pass
salestype=2 - pass
2100000001903
w2w:
one record need to be created - UNABLE TO VERIFY
salestype=1 - UNABLE TO VERIFY
- ERROR UPON PURCHASE:
https://13549425-review-398-fix-br-1dncba.staging.mexicoinsuranceonline.com/mexico-wc/app/comp/step_5.mhtml
Error in the backend:
Use of uninitialized value in numeric gt (>) at /usr/local/share/perl/5.18.2/Net/Braintree/HTTP.pm line 50.
[Thu Mar 20 00:13:51.651074 2025] [perl:error] [pid 24] [client 192.168.9.42:38384] Can't call method "id" on an undefined value at /usr/src/app/htdocs/mexico-wc/app/comp/step_5.mhtml line 226.\t\tStack: [/usr/src/app/htdocs/mexico-wc/app/comp/step_5.mhtml:226], [/usr/local/share/perl/5.18.2 /HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-wc/app/comp/step_5.mhtml.obj:8], [/usr/src/app/htdocs/mexico-wc/app/comp/step_5.mhtml:51], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-wc/app/comp/step_5.mhtml.obj:17]\n, referer: https://13549425-review-398-fix-br-1dncba.staging.mexicoinsuranceonline.com/mexico-wc/app/?aff_id=2149&session_id=3718f3b757f28a24e3838f14238f6cfa&step=4
Mar 20 00:13:50: polmaker-k8s polmaker-v3 method=POST path="/mexico-wc/app/comp/step_5.mhtml" host=13549425-review-398-fix-br-1dncba.staging.mexicoinsuranceonline.com service=833627 bytes=531 status=500 remote=192.168.9.42 real-ip=47.215.190.41 protocol=HTTP/1.1 ua="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
----------------------------- HOME
--
As a "test user"
--
Agent:
Needs to show voided - pass
two records need to be created - pass
salestype=2 - pass
10012143
w2w:
Needs to show voided - pass
two records need to be created - pass
salestype=1 - pass
10012142
--
As a 'real user'.
--
Agent:
one record need to be created - pass
salestype=2 - pass
10012141
w2w:
one record need to be created - UNABLE TO VERIFY
salestype=1 - UNABLE TO VERIFY
- ERROR UPON PURCHASE:
https://13549425-review-398-fix-br-1dncba.staging.mexicoinsuranceonline.com/mexico-home-owners/quote/do/quote_step_6.mhtml
Error in the backend:
[Thu Mar 20 01:06:15.723589 2025] [perl:error] [pid 29] [client 192.168.65.1:64721] Can't call method "id" on an undefined value at /usr/src/app/htdocs/mexico-home-owners/quote/do/quote_step_6.mhtml line 235.\t\tStack: [/usr/src/app/htdocs/mexico-home-owners/quote/do/quote_step_6.mhtml:235], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-home-owners/quote/do/quote_step_6.mhtml.obj:8], [/usr/src/app/htdocs/mexico-home-owners/quote/do/quote_step_6.mhtml:50], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-home-owners/quote/do/quote_step_6.mhtml.obj:28], [/usr/src/app/htdocs/mexico-home-owners/quote/autohandler:28], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-home-owners/quote/autohandler.obj:59], [/usr/src/app/htdocs/autohandler:93], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/autohandler.obj:77]\n, referer: http://localhost:3000/mexico-home-owners/quote/quote_step_6.mhtml?session_id=4493ec45ad61d07ab99bce385fb81d33
polmaker-v3-web-1 | Mar 20 01:06:14: mio-dev polmaker-v3 method=POST path="/mexico-home-owners/quote/do/quote_step_6.mhtml" host=localhost:3000 service=1302511 bytes=531 status=500 remote=192.168.65.1 real-ip=- protocol=HTTP/1.1 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Updated by George Howington about 1 month ago
Live testing passes. CC issuance still implemented for Auto, boat and Home
Updated by George Howington about 1 month ago
1=w2w
2=agent
Endorsement checks (as test server):
------
Auto:
Edit Vehicle Information: (41101172)
w2w:41101172 - salestype=1 - pass
agent:41101172 - salestype=2 - pass
Manually Endorse Policy:
w2w: (na)
agent:41101172 - this is incorrectly reported as w2w. This needs to be fixes separately
Add Trailer:
w2w:41101172 - salestype=1 - pass
agent:41101172 - salestype=2 - pass
------
Boat:
Manually Endorse Policy:
w2w: (na)
agent:2100000001901 - this is incorrectly reported as w2w. This needs to be fixes separately
------
Home:
Manually Endorse Policy:
w2w: (na)
agent:10012144 - this is incorrectly reported as w2w. This needs to be fixes separately
Updated by George Howington about 1 month ago
- Status changed from QA to In Progress
- Assignee changed from George Howington to Leo Esaki
Hi Leo,
All works perfectly for Auto. However, boat and home needs an update when making a credit card purchase as a 'test server':
Initial purchase: - AS A TEST SERVER
(1) Watercraft:
one record need to be created - UNABLE TO VERIFY
salestype=1 - UNABLE TO VERIFY
- ERROR UPON PURCHASE:
https://13549425-review-398-fix-br-1dncba.staging.mexicoinsuranceonline.com/mexico-wc/app/comp/step_5.mhtml
Error in the backend:
Use of uninitialized value in numeric gt (>) at /usr/local/share/perl/5.18.2/Net/Braintree/HTTP.pm line 50.
[Thu Mar 20 00:13:51.651074 2025] [perl:error] [pid 24] [client 192.168.9.42:38384] Can't call method "id" on an undefined value at /usr/src/app/htdocs/mexico-wc/app/comp/step_5.mhtml line 226.\t\tStack: [/usr/src/app/htdocs/mexico-wc/app/comp/step_5.mhtml:226], [/usr/local/share/perl/5.18.2 /HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-wc/app/comp/step_5.mhtml.obj:8], [/usr/src/app/htdocs/mexico-wc/app/comp/step_5.mhtml:51], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-wc/app/comp/step_5.mhtml.obj:17]\n, referer: https://13549425-review-398-fix-br-1dncba.staging.mexicoinsuranceonline.com/mexico-wc/app/?aff_id=2149&session_id=3718f3b757f28a24e3838f14238f6cfa&step=4
Mar 20 00:13:50: polmaker-k8s polmaker-v3 method=POST path="/mexico-wc/app/comp/step_5.mhtml" host=13549425-review-398-fix-br-1dncba.staging.mexicoinsuranceonline.com service=833627 bytes=531 status=500 remote=192.168.9.42 real-ip=47.215.190.41 protocol=HTTP/1.1 ua="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"
(2) Homeowners:
one record need to be created - UNABLE TO VERIFY
salestype=1 - UNABLE TO VERIFY
- ERROR UPON PURCHASE:
https://13549425-review-398-fix-br-1dncba.staging.mexicoinsuranceonline.com/mexico-home-owners/quote/do/quote_step_6.mhtml
Error in the backend:
[Thu Mar 20 01:06:15.723589 2025] [perl:error] [pid 29] [client 192.168.65.1:64721] Can't call method "id" on an undefined value at /usr/src/app/htdocs/mexico-home-owners/quote/do/quote_step_6.mhtml line 235.\t\tStack: [/usr/src/app/htdocs/mexico-home-owners/quote/do/quote_step_6.mhtml:235], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-home-owners/quote/do/quote_step_6.mhtml.obj:8], [/usr/src/app/htdocs/mexico-home-owners/quote/do/quote_step_6.mhtml:50], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-home-owners/quote/do/quote_step_6.mhtml.obj:28], [/usr/src/app/htdocs/mexico-home-owners/quote/autohandler:28], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/mexico-home-owners/quote/autohandler.obj:59], [/usr/src/app/htdocs/autohandler:93], [/usr/local/share/perl/5.18.2/HTML/Mason/Request.pm:948], [/.mason_data_dir/obj/1376386341/autohandler.obj:77]\n, referer: http://localhost:3000/mexico-home-owners/quote/quote_step_6.mhtml?session_id=4493ec45ad61d07ab99bce385fb81d33
polmaker-v3-web-1 | Mar 20 01:06:14: mio-dev polmaker-v3 method=POST path="/mexico-home-owners/quote/do/quote_step_6.mhtml" host=localhost:3000 service=1302511 bytes=531 status=500 remote=192.168.65.1 real-ip=- protocol=HTTP/1.1 ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Updated by Leo Esaki about 1 month ago
- Status changed from In Progress to QA
- Assignee changed from Leo Esaki to George Howington
Hi George.
I fixed the issues on watercraft and homeowners. Please take a look and let me know if you find anything else.
Best,
Leo