Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 591 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 591 Bytes

KKIAPAY RUBY-SDK

Installing

Using npm:

    $ gem install kkiapay

Initialization

require "kkiapay"

sandbox = false
# setup your api key (https://www.kkiapay.me)
k = Kkiapay.new('your_public_key', 'your_private_key', 'your_secret_key', sandbox)

Request to retrieve transactions

EXAMPLE

# Request to retrieve transactions
result = k.verify_transaction('transaction_id')
puts result

Request to revert transaction

EXAMPLE

# Request to retrieve transactions
result = k.refund_transaction('transaction_id')
puts result