lib/gateway/Gateway.rb in mundipagg_sdk-1.0.1 vs lib/gateway/Gateway.rb in mundipagg_sdk-1.0.2
- old
+ new
@@ -228,17 +228,16 @@
begin
if retrySaleRequest.RetrySaleCreditCardTransactionCollection != nil
retrySaleRequest.RetrySaleCreditCardTransactionCollection.each do |retrySale|
r = retrySale.to_json
saleHash['RetrySaleCreditCardTransactionCollection'] << r
-
- if retrySaleRequest.Options.to_json.any?
- retry_options = retrySaleRequest.Options.to_json
- saleHash['Options'] = retry_options
- else
- saleHash['Options'] = nil
- end
end
+ end
+ if retrySaleRequest.Options.to_json.any?
+ retry_options = retrySaleRequest.Options.to_json
+ saleHash['Options'] = retry_options
+ else
+ saleHash['Options'] = nil
end
rescue Exception => e
return e.message
end
if @serviceEnvironment == :staging