GithubHelp home page GithubHelp logo

mart337i / aiia-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spiir/aiia-sample

0.0 0.0 0.0 1.58 MB

License: MIT License

Shell 0.37% C# 61.91% PowerShell 0.33% CSS 1.91% HTML 35.47%

aiia-sample's Introduction

aiia-sample

Sample ASP.NET Core web app apps showcasing a basic usage and feature of Aiia.

Introduction

The sample app implements some very basic features of Aiia to get you familiar to how it works.

It's focused more on developers, and it's is still work in progress. Our goal is to showcase all of the Aiia features in this project.

You can find Aiia documentation at https://docs.aiia.eu/

Web

Running locally

  1. You'll need to create an account at https://portal.aiia.eu/ and generate a ClientId and ClientSecret.

    1. As a webhook url specify https:///aiia/webhook if your website is publicly reachable. If this is not the case it can also be left empty, but you won't receive any webhook in that case.
    2. As a redirect url https:///aiia/callback. You can also use localhost for this field (remember the port number!)
  2. Download and install .NET Core 6.

  3. Run the initialize.sh or initialize.ps1 scripts in the repository root to setup the project.

    • The script will ask you the ClientId and ClientSecret you previously configured.
    • The webhook secret is optional and can be left empty.
    • FOR SANDBOX ONLY: Note that the project is configured by default to use the production APIs for Aiia. If you are only enabled for sandbox you need to open Web/appsettings.json and change the BaseApiUrl into https://api-sandbox.aiia.eu.
  4. Open the .sln project file in your favorite C# development environment and start the project, or run the following cd Web; dotnet run

Basic Flow to add your account to the app:

  1. Navigate to the sample app: http://localhost:5020
  2. Register
  3. Navigate to Accounts page using Accounts button in the navigation bar
  4. Click the Connect Accounts link
  5. Go through the Aiia flow, logging in into your bank.
  6. At the end you'll be redirected to sample app's callback page with some explanation of what's happening behind the scenes
  7. When you navigate back to the Accounts page will be not empty anymore
  8. Press on one of the accounts in the list
  9. You'll be shown the transactions list (if transaction page is empty, that's fine, we fetch transaction data asynchronously so it's not always there at the beginning, but we notify clients when that's done via webhook)
  10. If running the project not through our webpage you can also try out payments.

aiia-sample's People

Contributors

edgar-spiir avatar majspiir avatar iagspiir avatar iabspiir avatar krlaiia avatar cdl-spiir avatar nis-spiir avatar dependabot-preview[bot] avatar ancspiir avatar dacspiir avatar jamaiia avatar symspiir avatar gudmundurh avatar mart337i avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.