lib/pagseguro/checkout.rb in pagseguro_next-1.0.2 vs lib/pagseguro/checkout.rb in pagseguro_next-1.0.3
- old
+ new
@@ -3,11 +3,11 @@
module PagSeguro
class Checkout
include Restful
def create(params)
- params = build_request(params).to_xml(encoding: "UTF-8")
- response = post_xml("/v2/checkout", params)
+ body = build_request(params).to_xml(encoding: "UTF-8")
+ response = post("/v2/checkout", body, xml: :simple)
response.checkout
end
def url(code)
url_for :site, "/v2/checkout/payment.html", code: code