Sha256: 540fc491a4c67bb14f2c9867cbe168f9078403cc3b2dcabc3105b54acfa091bd
Contents?: true
Size: 1.94 KB
Versions: 1
Compression:
Stored size: 1.94 KB
Contents
# NICEPay Ruby Bindings ## Ruby SDK API Operation Test ### Virtual Account ``` $ ruby sample/test-va.rb ``` ``` ---------------------------------------------------------------------- Virtual Account Number : 7001400000000631 Description : Payment of Invoice-7834 Reference No : Invoice-7834 Transaction ID : VACCTCLOSE02201606061649584906 ---------------------------------------------------------------------- ``` ### Card Checkout ``` $ ruby sample/test-card.rb ``` ``` ----------------------------------------------------------------------------------------------------- Redirect Customer to : https://www.nicepay.co.id/nicepay/api/orderInquiry.do?tXid=IONPAYTEST01201606061651114907 tXid : IONPAYTEST01201606061651114907 ----------------------------------------------------------------------------------------------------- ``` ### Check Transaction Status ``` $ ruby sample/test-status.rb ``` ``` ---------------------------------------------------------------------- Transaction Status : 3 Amount : 3000 Reference No : Invoice-7834 Transaction ID : VACCTCLOSE02201606061354204825 ---------------------------------------------------------------------- ``` ## Ruby on Rails ### Add gem into Gemlock add following line ``` gem 'nicepay', '~> 0.1.1' ``` ### Generate Controller ``` $ rails generate controller checkout ``` ``` create app/controllers/checkout_controller.rb invoke erb create app/views/checkout invoke test_unit create test/controllers/checkout_controller_test.rb invoke helper create app/helpers/checkout_helper.rb invoke test_unit invoke assets invoke coffee create app/assets/javascripts/checkout.coffee invoke scss create app/assets/stylesheets/checkout.scss ``` ### Configure routes (config/routes.rb) add following line ``` resources :checkout ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nicepay-0.1.3 | README.md |