lib/active_merchant/billing/gateways/safe_charge.rb in activemerchant-1.66.0 vs lib/active_merchant/billing/gateways/safe_charge.rb in activemerchant-1.67.0
- old
+ new
@@ -4,11 +4,11 @@
module Billing #:nodoc:
class SafeChargeGateway < Gateway
self.test_url = 'https://process.sandbox.safecharge.com/service.asmx/Process'
self.live_url = 'https://process.safecharge.com/service.asmx/Process'
- self.supported_countries = ['US']
+ self.supported_countries = ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'GR', 'ES', 'FI', 'FR', 'HR', 'HU', 'IE', 'IS', 'IT', 'LI', 'LT', 'LU', 'LV', 'MT', 'NL', 'NO', 'PL', 'PT', 'RO', 'SE', 'SE', 'SI', 'SK', 'GB', 'US']
self.default_currency = 'USD'
self.supported_cardtypes = [:visa, :master]
self.homepage_url = 'https://www.safecharge.com'
self.display_name = 'SafeCharge'
@@ -112,9 +112,10 @@
post[:sg_Amount] = amount(money)
post[:sg_ClientLoginID] = @options[:client_login_id]
post[:sg_ClientPassword] = @options[:client_password]
post[:sg_ResponseFormat] = "4"
post[:sg_Version] = VERSION
+ post[:sg_ClientUniqueID] = options[:order_id] if options[:order_id]
end
def add_payment(post, payment)
post[:sg_NameOnCard] = payment.name
post[:sg_CardNumber] = payment.number