-
Notifications
You must be signed in to change notification settings - Fork 3
Retry
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)
retrySaleRequest = Gateway::RetrySaleRequest.new
# fill retry object
retrySaleRequest.OrderKey = 'OrderKey goes here!'
# make the request and returns a response hash
response = gateway.Retry(retrySaleRequest)