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
- Host: GitHub
- URL: https://github.com/paxa/veritrans-rails-sample-cart
- Owner: Paxa
- Created: 2013-09-17T10:14:03.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-10-17T09:41:50.000Z (almost 13 years ago)
- Last Synced: 2025-08-09T19:33:42.284Z (12 months ago)
- Language: Ruby
- Size: 191 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
-------

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