lib/active_merchant/billing/gateways/paystation.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/paystation.rb in activemerchant-1.116.0
- old
+ new
@@ -72,20 +72,20 @@
store_credit_card(post, options)
commit(post)
end
- def refund(money, authorization, options={})
+ def refund(money, authorization, options = {})
post = new_request
add_amount(post, money, options)
add_invoice(post, options)
add_refund_specific_fields(post, authorization)
commit(post)
end
- def verify(credit_card, options={})
+ def verify(credit_card, options = {})
authorize(0, credit_card, options)
end
def supports_scrubbing?
true
@@ -177,11 +177,10 @@
response = parse(data)
message = message_from(response)
PaystationResponse.new(success?(response), message, response,
test: (response[:tm]&.casecmp('t')&.zero?),
- authorization: response[:paystation_transaction_id]
- )
+ authorization: response[:paystation_transaction_id])
end
def success?(response)
(response[:ec] == SUCCESSFUL_RESPONSE_CODE) || (response[:ec] == SUCCESSFUL_FUTURE_PAYMENT)
end