Skip to content

aviabird/gringotts_payment

Repository files navigation

GringottsPayment

An Example application showing, the integration of different Payment Gateways in a Phoenix application using gringotts library.

To test this application locally:

  • Fork this repository.
  • Install dependencies with mix deps.get
  • (Optionally) Start postgres via make start-pgsql via Docker. You'll need docker installed locally.
    • Confirm via docker ps if required.
    • Use make pgsql to start postgres in foreground to troubleshoot, if needed.
    • export DATABASE_URL=postgres://postgres:@localhost:5432/gringotts_payment_dev
    • make clean-pgsql to remove image and start over.
    • You may need to start make start-pgsql twice, after clean-pgsql
  • Create and migrate your database with mix ecto.create
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with make dev

Now you can visit localhost:4000 from your browser.

Checkout the running application @ gringotts_pay

Learn more