Configure for production ΒΆ
Once production validation is done, the transit provider can be added to the production Benefits database.
Most of these steps are typically performed by a Cal-ITP developer.
- Transit agency creates a customer group for production use in production Littlepay.
- Transit agency associates the group with the discount product created previously during production validation.
- Once this is complete, Cal-ITP verifies that the setup is correct by using the littlepay CLI.
- Cal-ITP creates a
TransitAgencyin the prod environment - Cal-ITP creates a new
LittlepayGroupin the Benefits prod environment:- Associate the new
LittlepayGroupwith the correct transit provider and enrollment flow using the dropdowns. - Set the ‘Group id’ to the corresponding production group ID (from production Littlepay).
- Associate the new
-
Cal-ITP creates a new
LittlepayConfigin the Benefits prod environment:- Set Environment to Production.
- Return to the
TransitAgencyand associate the newLittlepayConfigas its ‘Transit processor config’.- Choose the newTransitAgency. - Retrieve Audience and Client ID values for the production config from shared LastPass note.
- Client Secret Name:
${agency_slug}-payment-processor-client-secret - Create the corresponding secret in the Azure Key Vault for the environment
- Be sure to refresh the secrets for this to take effect!
- In the Azure portal, go to the App Service.
- Inside the App Service, navigate to Settings -> Environment variables.
- Click the Pull reference values button to force the App Service to bypass the 24-hour cache and fetch the latest values for Key Vault references. This triggers a graceful restart of the app.
-
Cal-ITP returns to the
TransitAgencyinstance and checks the Active box.
- Cal-ITP creates a
TransitAgencyin the prod environment -
Cal-ITP creates a new
SwitchioConfigin the Benefits production environment:- Environment: Production
- Label:
${agency_short_name} - Tokenization api key: from LastPass
- Tokenization api secret name:
${agency_slug}-switchio-prod-api-secret - Create the corresponding secret in the Azure Key Vault for the environment
- Be sure to refresh the secrets for this to take effect!
- In the Azure portal, go to the App Service.
- Inside the App Service, navigate to Settings -> Environment variables.
- Click the Pull reference values button to force the App Service to bypass the 24-hour cache and fetch the latest values for Key Vault references. This triggers a graceful restart of the app.
- Enrollment api authorization header: See LastPass (same for all agencies in the env)
- Pto id: from LastPass
- Client certificate: Switchio (prod) client certificate (same for all agencies in the env)
- Ca certificate: Switchio (prod) CA certificate (same for all agencies in the env)
- Private key: Switchio (prod) private key (same for all agencies in the env)
-
Cal-ITP creates a new
SwitchioGroupin the Benefits prod environment for each enrollment flow:- Associate the new
SwitchioGroupwith the correct transit provider and enrollment flow using the dropdowns. - Unlike Littlepay, Switchio group IDs are consistent across environments and agencies, so that does not need to be set here.
- Associate the new
- Cal-ITP returns to the
TransitAgencyinstance and selects theSwitchioConfigabove as the agency’s transit processor config and checks the Active box.
At this point, real customers can begin enrolling their cards and receiving their discounted fares with this transit provider!
Next steps: