lib/active_merchant/billing/gateways/plugnpay.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/plugnpay.rb in activemerchant-1.44.0

- old
+ new

@@ -151,11 +151,11 @@ def credit(money, identification_or_creditcard, options = {}) post = PlugnpayPostData.new add_amount(post, money, options) if identification_or_creditcard.is_a?(String) - deprecated CREDIT_DEPRECATION_MESSAGE + ActiveMerchant.deprecated CREDIT_DEPRECATION_MESSAGE refund(money, identification_or_creditcard, options) else add_creditcard(post, identification_or_creditcard) add_addresses(post, options) add_customer_data(post, options) @@ -264,20 +264,9 @@ end def add_amount(post, money, options) post[:card_amount] = amount(money) post[:currency] = options[:currency] || currency(money) - end - - # Make a ruby type out of the response string - def normalize(field) - case field - when "true" then true - when "false" then false - when "" then nil - when "null" then nil - else field - end end def message_from(results) PAYMENT_GATEWAY_RESPONSES[results[:resp_code]] end