This package provides a Python implementation for ACI's e24PaymentPipe Merchant Gateway
pip install e24PaymentPipe==1.2.0
The detailed documentation can be found in Smart City Platform's Stoa page.
$ sudo -u postgres psql
$ create role resource_adaptor with createdb login password 'resource_adaptor';
$ rvm install 2.2.0
$ gem install bundle$ bundle install$ bundle exec rake db:create$ bundle exec rake db:migrate$ rspecYou should see all tests passing =)
We use a relational database to store some important information about all components encapsulated by a resource.
By default, our database config file use the adpater for postgresql.
Basically, this app needs to know two external services:
The app also needs to know what its URL in order to properly register in the Smart City Platform.
To set the three required URL, edit the services config file.
In order to automatically populate the database with resource and components data we recommend that you use the one of the following methods:
Create components data through resource config file. See the file to undestand how to add data. After this, run the task to create components in database:
$ bundle exec rake component:createCreate components data through seed files. See the existing seed files to understand hot to create your own script. After this, run the task to create components in database:
$ bundle exec rake component:seed
$ bundle exec rake component:seed[my_file_name.rb]
You can also use alternative ways to populate the database with your informantion. You could add new fields or table by adding new migrations or create your own scripts to populate the database, for instance.
We create a thread to perform data collection by each of existing components in database. To properly start data collection, the following steps must be performed:
$ ComponentsManager.instance.start_all
$ rails runner scripts/collect.rb