lib/active_merchant/billing/gateways/payex.rb in activemerchant-1.112.0 vs lib/active_merchant/billing/gateways/payex.rb in activemerchant-1.113.0
- old
+ new
@@ -23,22 +23,22 @@
initialize: '1',
credit: '2',
authorize: '3',
cancel: '4',
failure: '5',
- capture: '6',
+ capture: '6'
}
SOAP_ACTIONS = {
initialize: { name: 'Initialize8', url: 'pxorder/pxorder.asmx', xmlns: 'http://external.payex.com/PxOrder/' },
purchasecc: { name: 'PurchaseCC', url: 'pxconfined/pxorder.asmx', xmlns: 'http://confined.payex.com/PxOrder/', confined: true},
cancel: { name: 'Cancel2', url: 'pxorder/pxorder.asmx', xmlns: 'http://external.payex.com/PxOrder/' },
capture: { name: 'Capture5', url: 'pxorder/pxorder.asmx', xmlns: 'http://external.payex.com/PxOrder/' },
credit: { name: 'Credit5', url: 'pxorder/pxorder.asmx', xmlns: 'http://external.payex.com/PxOrder/' },
create_agreement: { name: 'CreateAgreement3', url: 'pxagreement/pxagreement.asmx', xmlns: 'http://external.payex.com/PxAgreement/' },
delete_agreement: { name: 'DeleteAgreement', url: 'pxagreement/pxagreement.asmx', xmlns: 'http://external.payex.com/PxAgreement/' },
- autopay: { name: 'AutoPay3', url: 'pxagreement/pxagreement.asmx', xmlns: 'http://external.payex.com/PxAgreement/' },
+ autopay: { name: 'AutoPay3', url: 'pxagreement/pxagreement.asmx', xmlns: 'http://external.payex.com/PxAgreement/' }
}
def initialize(options = {})
requires!(options, :account, :encryption_key)
super
@@ -229,11 +229,11 @@
price: amount,
productNumber: options[:product_number] || '1',
description: options[:description] || options[:order_id],
orderId: options[:order_id],
purchaseOperation: is_auth ? 'AUTHORIZATION' : 'SALE',
- currency: (options[:currency] || default_currency),
+ currency: (options[:currency] || default_currency)
}
hash_fields = %i[accountNumber agreementRef price productNumber description orderId purchaseOperation currency]
add_request_hash(properties, hash_fields)
soap_action = SOAP_ACTIONS[:autopay]
@@ -276,11 +276,11 @@
end
def send_cancel(transaction_number)
properties = {
accountNumber: @options[:account],
- transactionNumber: transaction_number,
+ transactionNumber: transaction_number
}
hash_fields = %i[accountNumber transactionNumber]
add_request_hash(properties, hash_fields)
soap_action = SOAP_ACTIONS[:cancel]
@@ -308,10 +308,10 @@
end
def send_delete_agreement(authorization)
properties = {
accountNumber: @options[:account],
- agreementRef: authorization,
+ agreementRef: authorization
}
hash_fields = %i[accountNumber agreementRef]
add_request_hash(properties, hash_fields)
soap_action = SOAP_ACTIONS[:delete_agreement]