Sha256: 957a24ed10c92884fe819a7396e424585cd4793d9df206d20ea887d760b47edf
Contents?: true
Size: 1.3 KB
Versions: 6
Compression:
Stored size: 1.3 KB
Contents
#!/bin/bash set -euo pipefail IFS=$'\n\t' bundle install read -r -p 'Do you have an Paysafe Developer account? (y/n) ' has_account if [[ "$has_account" =~ ^(Yes|yes|Y|y)$ ]]; then echo "Great! You can get your account credentials from:" echo " https://login.test.netbanx.com/office/public/preLogin.htm" echo else echo "Then you'll need to create an account first." echo "Click the 'Sign Up' button on the following page:" echo " https://developer.paysafe.com/" echo read -s -p "Press Enter key if you're ready to continue..." echo fi echo "Enter your account credentials below." read -p 'Account Number: ' account_number read -p 'API Key: ' api_key read -p 'API Secret: ' api_secret read -p 'Single Use Token API Key: ' sut_api_key read -p 'Single Use Token API Secret: ' sut_api_secret read -p 'Unity API Key: ' unity_api_key read -p 'Unity API Secret: ' unity_api_secret cp .env.sample .env sed -i '' -e "s/YOUR_ACCOUNT_NUMBER/$account_number/g" .env sed -i '' -e "s/YOUR_API_KEY/$api_key/g" .env sed -i '' -e "s/YOUR_API_SECRET/$api_secret/g" .env sed -i '' -e "s/YOUR_SUT_API_KEY/$sut_api_key/g" .env sed -i '' -e "s/YOUR_SUT_API_SECRET/$sut_api_secret/g" .env sed -i '' -e "s/YOUR_UNITY_API_KEY/$unity_api_key/g" .env sed -i '' -e "s/YOUR_UNITY_API_SECRET/$unity_api_secret/g" .env echo "Done."
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
paysafe-0.15.0 | bin/setup |
paysafe-0.14.0 | bin/setup |
paysafe-0.13.0 | bin/setup |
paysafe-0.12.0 | bin/setup |
paysafe-0.11.0 | bin/setup |
paysafe-0.10.0 | bin/setup |