lib/active_merchant/billing/gateways/cyber_source.rb in activemerchant-1.106.0 vs lib/active_merchant/billing/gateways/cyber_source.rb in activemerchant-1.107.1
- old
+ new
@@ -323,10 +323,11 @@
def build_void_request(identification, options)
order_id, request_id, request_token, action, money, currency = identification.split(';')
options[:order_id] = order_id
xml = Builder::XmlMarkup.new indent: 2
- if action == 'capture'
+ case action
+ when 'capture', 'purchase'
add_mdd_fields(xml, options)
add_void_service(xml, request_id, request_token)
else
add_purchase_data(xml, money, true, options.merge(currency: currency || default_currency))
add_mdd_fields(xml, options)