Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'CnpOnline'
- include CnpOnline
- hash = {
- 'merchantId' => '101',
- 'id' => 'test',
- 'version'=>'8.8',
- 'reportGroup'=>'Planets',
- 'cnpTxnId'=>'123456',
- 'orderId'=>'12344',
- 'amount'=>'106',
- 'orderSource'=>'ecommerce',
- 'card'=>{
- 'type'=>'VI',
- 'number' =>'4100000000000002',
- 'expDate' =>'1210'
- }}
- response= CnpOnlineRequest.new.sale(hash)
- puts response.message
Add Comment
Please, Sign In to add comment