Sha256: e737166a9965989ab214925efe79758dcbc263aa94ab8e3b2bdbfb383170e56e
Contents?: true
Size: 1015 Bytes
Versions: 10
Compression:
Stored size: 1015 Bytes
Contents
#!/bin/bash set -euo pipefail IFS=$'\n\t' bundle install read -r -p 'Do you have a SynapsePay sandbox account? (y/n) ' has_account if [[ "$has_account" =~ ^(Yes|yes|Y|y)$ ]]; then echo "Great! You can get your account credentials from:" echo " https://sandbox.synapsepay.com/v3/dashboard/#/profile" echo else echo "Then you'll need to create an account first at:" echo " http://docs.synapsepay.com/docs/sandbox-keys" echo read -s -p "Press Enter key if you're ready to continue..." echo fi echo "Enter your account credentials below." read -p 'Client ID: ' client_id read -p 'Client Secret: ' client_secret echo "To retrieve your sandbox fingerprint, login and use Element Inspector." echo "In the console type sessionStorage.fingerprint, copy value and enter below." read -p 'Fingerprint: ' fingerprint cp .env.sample .env sed -i -e s/YOUR_CLIENT_ID/"$client_id"/g .env sed -i -e s/YOUR_CLIENT_SECRET/"$client_secret"/g .env sed -i -e s/YOUR_FINGERPRINT/"$fingerprint"/g .env echo "Done."
Version data entries
10 entries across 10 versions & 1 rubygems