Skip to content

Latest commit

 

History

History
executable file
·
43 lines (31 loc) · 1.19 KB

README.md

File metadata and controls

executable file
·
43 lines (31 loc) · 1.19 KB

Docker T2-Airtime Demo

This image allows you to run a proxy server to the Transfer-To Airtime service using the T2-Airtime gem.

Requirements

Docker CE installed on your local or development machine.

Setup Transfer-To credentials

  1. Make sure you are a registered user of Transfer-To.
  2. Enable Two Factor Authentication (2FA) in your Transfer-To Shop Security Center section
  3. Retrieve API key (token) created by Transfer-To Shop.
  4. Export your secrets as an environment variables:
export T2_SHOP_USER=<your_username>
export T2_AIRTIME_KEY=<your_token>
  1. Export the host allowed to access the API (CORS):
export CORS_ORIGIN=<your_frontend_address>
  1. Run:
docker run -d \
  --name t2_airtime \
  -p 3000:3000 \
  -e T2_SHOP_USER \
  -e T2_AIRTIME_KEY \
  -e CORS_ORIGIN \
  voxbox/t2_airtime
docker logs t2_airtime -f  

License

The container is available as open source under the terms of the MIT License.