Honor verification required setting for professional courses in the receipt view

Description

*Background*

When creating a profesional course in CAT (`/courses` view ecommerce) administrator is given option to either enable or disable "Verification" feature for that course. This setting is honored on the LMS `/dashboard` view, however it is not honored on the `/receipt` view.

Only LMS is affected by this change.

*Sandbox URL*: TBD - sandbox is being provisioned.

*Partner information*: 3rd party-hosted open edX instance

*Reviewers*

  • [x] @mtyaka

  • [ ] edX reviewer[s] TBD

  1.  

    1. Testing instructions

*On sandbox*

Login as a verified@example.com user and see following two receipts:

*On Devstack*
Prepare the enviorment:

1. Install devstack using recent master
2. Setup a payment processor, paypal seems to be the easier one to set up. See setting-up PayPal for some hints
3. Create two new courses in Studio, name one of them "Professional with Verification Required" and another one "Professional no verification".
4. Start e-commerce and go to `localhost:8002/courses`, and add two courses, first one with Verification second one without it.

Reproduce the issue:

1. Register to the platform with a new user, and buy for both courses.
2. Observe that on Receipt for both courses you are asked to confirm your identity.

![selection_001](https://cloud.githubusercontent.com/assets/112872/15285920/845883c4-1b5a-11e6-9db1-8980d51cdd69.png)

Verify the fix:

1. Check out this branch.
2. Go to the receipt pages for both courses, and observe that course with enabled verification still
asks user to verify:
![selection_002](https://cloud.githubusercontent.com/assets/112872/15285983/dff0c9ee-1b5a-11e6-851e-c10708e7a86b.png)

3. However for course with verification disabled user can go straight to the dashboard
![selection_003](https://cloud.githubusercontent.com/assets/112872/15285989/ec3cdc6a-1b5a-11e6-9dc5-5281bbece0d6.png)

  1.  

    1.  

      1. Setting up PayPal

To configure paypal [add section from this gist](https://gist.github.com/jbzdak/e5761f9f5ac05fee8624d0f966e98961) to `ecommerce/settings/private.py`. And `client_id` and `client_secret`.

I also had problems releated to PayPal forcing TLS 1.2 for all urls (including Sandbox), if you'll get errors citing: 'sslv3 alert handshake failure', you'll need to update `lib-ssl-`, `openssl-` (and probably `curl`) in your devstack.

  • - -
    *Settings*
    ```yaml
    SANDBOX_ENABLE_ECOMMERCE: True
    edxapp_worker_default_stopwaitsecs: 1200
    configuration_version: a4c2e31c8a37652e8cda88e498ef9662ff5be19c
    ```

Status

Assignee

Unassigned

Reporter

Edx Admin [Administrator]

Contributor Name

Jacek Bzdak

Repo

edx/edx-platform

Customer

Epic Link

None

OSCM Assignee

Shauna Gordon-McKeon

Priority

Unset
Configure