lib/active_merchant/billing/gateways/certo_direct.rb in activemerchant-1.43.3 vs lib/active_merchant/billing/gateways/certo_direct.rb in activemerchant-1.44.0

- old
+ new

@@ -99,14 +99,15 @@ # * <tt>options</tt> -- A hash of parameters. # # ==== Options # def recurring(identification, options={}) + ActiveMerchant.deprecated RECURRING_DEPRECATION_MESSAGE + commit(build_recurring_request(identification, options)) end - private def commit(request_xml) begin response = Hash.from_xml(ssl_post(self.live_url, request_xml, headers)) @@ -153,10 +154,10 @@ end end def build_recurring_request(identification, options) build_request_xml('Sale') do |xml| - xml.tag! 'order' do |xml| + xml.tag! 'order' do xml.tag!('test', 'true') if test? xml.tag! 'initial_order_id', identification, :type => 'integer' add_order_details(xml, options[:amount], options) if has_any_order_details_key?(options) add_address(xml, 'billing_address', options[:billing_address]) if options[:billing_address]