An open API service indexing awesome lists of open source software.

https://github.com/paxa/veritrans-rails-sample-cart

Example implementation of Veritrans VTLink integration checkout using Ruby on Rails
https://github.com/paxa/veritrans-rails-sample-cart

Last synced: 2 months ago
JSON representation

Example implementation of Veritrans VTLink integration checkout using Ruby on Rails

Awesome Lists containing this project

README

          

veritrans-rails-sample-cart
===========================

Example implementation of Veritrans VTLink integration checkout using Ruby on Rails

Online demo available at [http://veritrans-rails-sample-cart.herokuapp.com](http://veritrans-rails-sample-cart.herokuapp.com/ "online demo")

Langkah-langkah code integrasi:

- Tambahkan `gem "veritrans"` di "Gemfile"

- Buat routing yang di butuhkan untuk checkout menggunakan Veritrans Payment Gateway

```ruby
#.....ROUTES Example:
root :to => 'product#index' #................................checkout form

match 'confirm' => 'veritrans#confirm', :via => :post #...confirmation (autosubmit to veritrans server)
match 'postvtw' => 'veritrans#postvtw', :via => :post #...server to server notification
match 'finish' => 'veritrans#finish', :via => :post #...server to server redirection
match 'unfinish'=> 'veritrans#unfinish',:via => :get #...link-back to merchant web
match 'error' => 'veritrans#error', :via => :post #...server to server redirection
```

Untuk membuat struktur database sample store dan generate sample data

- `rake db:setup`

How to run on heroku
--------------------

1. Make an heroku app via control panel
2. run `git push heroku master`
3. heroku run "rake db:migrate" (only first time)

Credits
-------

![Veritrans](https://www.veritrans.co.id/images/logo-small.png)

This application is example of integration with [Veritrans payment gateway](https://www.veritrans.co.id)