lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.116.0
- old
+ new
@@ -69,25 +69,27 @@
post[:entityType] = options[:entity_type] if options[:entity_type]
post[:nationality] = options[:nationality] if options[:nationality]
post[:shopperName] = options[:shopper_name] if options[:shopper_name]
if options[:third_party_payout]
- post[:recurring] = options[:recurring_contract] || {contract: 'PAYOUT'}
+ post[:recurring] = options[:recurring_contract] || { contract: 'PAYOUT' }
MultiResponse.run do |r|
r.process {
commit(
'storeDetailAndSubmitThirdParty',
post,
@options[:store_payout_account],
- @options[:store_payout_password])
+ @options[:store_payout_password]
+ )
}
r.process {
commit(
'confirmThirdParty',
modification_request(r.authorization, @options),
@options[:review_payout_account],
- @options[:review_payout_password])
+ @options[:review_payout_password]
+ )
}
end
else
commit('refundWithData', post)
end
@@ -106,10 +108,10 @@
end
def store(creditcard, options = {})
post = store_request(options)
post[:card] = credit_card_hash(creditcard)
- post[:recurring] = {contract: 'RECURRING'}
+ post[:recurring] = { contract: 'RECURRING' }
commit('store', post)
end
def supports_scrubbing?