Sha256: ca15490cb0ea8dedcfb28d01900d41226b97927360277500eaf98b187d931958

Contents?: true

Size: 766 Bytes

Versions: 9

Compression:

Stored size: 766 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

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

echo "Done."

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
synapse_payments-0.6.0 bin/setup
synapse_payments-0.5.0 bin/setup
synapse_payments-0.4.0 bin/setup
synapse_payments-0.3.1 bin/setup
synapse_payments-0.3.0 bin/setup
synapse_payments-0.2.1 bin/setup
synapse_payments-0.2.0 bin/setup
synapse_payments-0.1.1 bin/setup
synapse_payments-0.1.0 bin/setup