lib/active_merchant/billing/gateways/quickpay.rb in bitfluent-activemerchant-1.5.1.1 vs lib/active_merchant/billing/gateways/quickpay.rb in bitfluent-activemerchant-1.15.1
- old
+ new
@@ -7,11 +7,11 @@
URL = 'https://secure.quickpay.dk/api'
self.default_currency = 'DKK'
self.money_format = :cents
self.supported_cardtypes = [ :dankort, :forbrugsforeningen, :visa, :master, :american_express, :diners_club, :jcb, :maestro ]
- self.supported_countries = ['DK']
+ self.supported_countries = ['DK', 'SE']
self.homepage_url = 'http://quickpay.dk/'
self.display_name = 'Quickpay'
PROTOCOL = 3
@@ -73,16 +73,21 @@
add_reference(post, identification)
commit(:cancel, post)
end
- def credit(money, identification, options = {})
+ def refund(money, identification, options = {})
post = {}
add_amount_without_currency(post, money)
add_reference(post, identification)
commit(:refund, post)
+ end
+
+ def credit(money, identification, options = {})
+ deprecated CREDIT_DEPRECATION_MESSAGE
+ refund(money, identification, options)
end
def store(creditcard, options = {})
post = {}