Skip to content
Jason Sylvestre edited this page Jan 12, 2021 · 16 revisions

FAQs and Other info for Sloth

Deployment steps:

  1. Wait for the pipe to build and deploy
  2. Test Web site to make sure it is functioning
  3. Test Api to make sure it is still working

Test: https://sloth-api-test.azurewebsites.net/swagger/index.html

Prod: https://sloth-api-production.azurewebsites.net/swagger/index.html

  1. If everything is good in test, promote to Prod with the pipe

Hooks:

Hooks can call back into the team's application when the web job indicates the money has posted. Currently, only registration test has this functionality. The other teams use web jobs to call into sloth.

Setting Up Custom CyberSource Reports:

https://github.com/ucdavis/Sloth/blob/master/Sloth.Integrations.Cybersource/Clients/ReportClient.cs#L33 CyberSource Fields

Adding a CyberSource API Key

Go to Payment Configuration -> Key Management and click "Generate Key". Create a key of type "API Cert/Secret" and then choose "Shared Secret" on the next step. Write down the KeyID and Secret, which need to be added into sloth to allow it to access the reports.

Integrating with KFS

KFS uses SFTP for scrubber upload. A public/private keypair is required to access the server. Create the keypair and send the public key to the KFS team and then input the private key into Sloth.

Creating the keypair:

  1. ssh-keygen -t rsa
  2. Choose a filename and leave the password blank
  3. To get public key in correct format: ssh-keygen -e -f <privatekey>
  4. To get private key in correct format: ssh-keygen -p -N "" -m pem -f <privatekey>. This changes the file in situ.

When setting up the KFS source, the Source Name and Type must match what the other application (registration for example) uses to create the transactions.

Registration Example: https://www.screencast.com/t/Vnsd84nUQ1GJ

Find missing payment order for Payments:

SELECT dbo.Transactions.MerchantTrackingNumber, dbo.Teams.Name, COUNT(*) AS test FROM dbo.Transactions INNER JOIN dbo.Sources ON dbo.Transactions.SourceId = dbo.Sources.Id INNER JOIN dbo.Teams ON dbo.Sources.TeamId = dbo.Teams.Id where dbo.Teams.Name = 'Payments' GROUP BY dbo.Transactions.MerchantTrackingNumber, dbo.Teams.Name order by test asc

Clone this wiki locally