lib/active_merchant/billing/gateways/pay_junction.rb in bitfluent-activemerchant-1.5.1.1 vs lib/active_merchant/billing/gateways/pay_junction.rb in bitfluent-activemerchant-1.15.1

- old
+ new

@@ -97,13 +97,13 @@ # See example use above for address AVS fields # See #recurring for periodic transaction fields class PayJunctionGateway < Gateway API_VERSION = '1.2' - class_inheritable_accessor :test_url, :live_url + class_attribute :test_url, :live_url - self.test_url = "https://demo.payjunction.com/quick_link" + self.test_url = "https://www.payjunctionlabs.com/quick_link" self.live_url = "https://payjunction.com/quick_link" TEST_LOGIN = 'pj-ql-01' TEST_PASSWORD = 'pj-ql-01p' @@ -205,26 +205,26 @@ def credit(money, authorization, options = {}) parameters = { :transaction_amount => amount(money), :transaction_id => authorization } - + commit('CREDIT', parameters) end - + # Cancel a transaction that has been charged but has not yet made it # through the batch process. - def void(money, authorization, options = {}) + def void(authorization, options = {}) parameters = { :transaction_id => authorization, :posture => 'void' } - - add_optional_fields(parameters, options) + + add_optional_fields(parameters, options) commit('update', parameters) end - + # Set up a sale that will be made on a regular basis for the same amount # (ex. $20 a month for 12 months) # # The parameter :periodicity should be specified as either :monthly, :weekly, or :daily # The parameter :payments should be the number of payments to be made @@ -387,6 +387,6 @@ end end end end -end \ No newline at end of file +end