-
Notifications
You must be signed in to change notification settings - Fork 3
InstantBuyKey
Munir Wanis edited this page Feb 10, 2016
·
2 revisions
require 'stone_ecommerce'
# variable with merchant key
merchantKey = '85328786-8BA6-420F-9948-5352F5A183EB'
# instantiate class with request methods
# :sandbox for sandbox ambient
# :production for production ambient
gateway = Gateway::Gateway.new(:sandbox, merchantKey)
# make the request and returns a response hash
response = gateway.InstantBuyKey('2B2894E2-6767-4FE4-9A37-5F3E60EF9814')