Guest User

Untitled

a guest
Nov 15th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. require 'CnpOnline'
  2. include CnpOnline
  3.  
  4. hash = {
  5. 'merchantId' => '101',
  6. 'id' => 'test',
  7. 'version'=>'8.8',
  8. 'reportGroup'=>'Planets',
  9. 'cnpTxnId'=>'123456',
  10. 'orderId'=>'12344',
  11. 'amount'=>'106',
  12. 'orderSource'=>'ecommerce',
  13. 'card'=>{
  14. 'type'=>'VI',
  15. 'number' =>'4100000000000002',
  16. 'expDate' =>'1210'
  17. }}
  18.  
  19. response= CnpOnlineRequest.new.sale(hash)
  20. puts response.message
Add Comment
Please, Sign In to add comment