Skip to content

Commit

Permalink
SecurePayAU: Send Content-Type headers
Browse files Browse the repository at this point in the history
test/unit/gateways/secure_pay_au_test.rb
24 tests, 106 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

test/remote/gateways/remote_secure_pay_au_test.rb
18 tests, 56 assertions, 0 failures, 0 errors, 0 pendings, 2 omissions, 0 notifications
100% passed
  • Loading branch information
andypalmer authored and dacook committed Jun 17, 2024
1 parent 019b073 commit e627c76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/active_merchant/billing/gateways/secure_pay_au.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def build_request(action, body)
end

def commit(action, request)
response = parse(ssl_post(test? ? self.test_url : self.live_url, build_request(action, request)))
response = parse(ssl_post(test? ? self.test_url : self.live_url, build_request(action, request), {"Content-Type" => "text/xml; charset=utf-8"}))

Response.new(
success?(response),
Expand Down Expand Up @@ -241,7 +241,7 @@ def build_periodic_request(body)

def commit_periodic(request)
my_request = build_periodic_request(request)
response = parse(ssl_post(test? ? self.test_periodic_url : self.live_periodic_url, my_request))
response = parse(ssl_post(test? ? self.test_periodic_url : self.live_periodic_url, my_request, {"Content-Type" => "text/xml; charset=utf-8"}))

Response.new(
success?(response),
Expand Down

0 comments on commit e627c76

Please sign in to comment.