Register
Submit a solution
The challenge is finished.

Challenge Overview

For this challenge, we'd like to add a new payment provider option (Wipro Payroll), which will be only available for Wipro SSO user.

Following are the general requirements.

1. The new payment provider option should be saved in database see payment_method_lu table in informixoltp database
2. The new payment provider option should be available only for Wipro SSO user, following query can be used to determine if a user is Wpiro SSO user

SELECT u.user_id, u.handle, su.sso_user_id, sp.name AS provider
FROM user u
JOIN user_sso_login su ON su.user_id = u.user_id
JOIN sso_login_provider sp ON sp.sso_login_provider_id = su.provider_id AND sp.name = 'wipro-adfs'
WHERE u.handle = <<HANDLE>>

3. Apply the following logic In Edit Payment Preferences page (in production, it can be visited by https://community.topcoder.com/tc?module=EditPaymentPreferences after login)
3.1 The Wirpo Payroll option will be shown in the Payment Method section.
3.2 If the user is not Wipro SSO User, don't show the Wipro Payroll option, filter it out in the backend before showing.
3.3 if the user is Wipro SSO User, only the Wipro Payroll option will be enabled, other options will be disabled.

4. In the Payment Provider Section, add a description for Wipro Payroll payment provider.

5. Both frontend and backend should be added with the validation that Wipro SSO User can not choose other payment methods except Wipro Payroll, and no Wpiro SSO User can choose any payment method except Wipro Payroll.

6. The changes should be mainly following files
https://github.com/topcoder-platform/tc-website/blob/dev/src/main/com/topcoder/web/tc/controller/request/myhome/EditPaymentPreferences.java
https://github.com/topcoder-platform/tc-website/blob/dev/src/main/com/topcoder/web/tc/view/my_home/paymentPreferences.jsp

How To Setup Locally

Please follow https://github.com/appirio-tech/tc-common-tutorials/tree/master/docker/tc-website  to setup the tc website locally and make the changes.
 

Final Submission Guidelines

- Database Changes
- git patch files for applying the changes
- Verification Steps

Review style

Final Review

Community Review Board

Approval

User Sign-Off

ID: 30058631