Sha256: c350980394cee112e5638e6f0acb4972d1832c72b10863d3d770f3f74e05c2c5

Contents?: true

Size: 869 Bytes

Versions: 6

Compression:

Stored size: 869 Bytes

Contents

#!/bin/bash
set -euo pipefail
IFS=$'\n\t'

bundle install

read -r -p 'Do you have an Optimal Payments Developer Centre account? (y/n) ' has_account

if [[ "$has_account" =~ ^(Yes|yes|Y|y)$ ]]; then
  echo "Great! You can get your account credentials from:"
  echo "  https://developer.optimalpayments.com/en/my-account/"
  echo
else
  echo "Then you'll need to create an account first at:"
  echo "  https://developer.optimalpayments.com/en/get-started/"
  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

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

echo "Done."

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
paysafe-0.6.2 bin/setup
paysafe-0.6.1 bin/setup
paysafe-0.6.0 bin/setup
paysafe-0.5.1 bin/setup
paysafe-0.5.0 bin/setup
paysafe-0.4.0 bin/setup