lib/pagseguro/plans.rb in pagseguro_next-1.0.2 vs lib/pagseguro/plans.rb in pagseguro_next-1.0.3
- old
+ new
@@ -3,11 +3,11 @@
module PagSeguro
class Plans
include Restful
def create(params)
- xml = build_request(params).to_xml
- post_xml("/pre-approvals/request", xml)
+ body = build_request(params).to_xml
+ post("/pre-approvals/request", body, xml: :versioned)
end
def update(code, params)
params[:amount_per_payment] = to_money params[:amount_per_payment]
params = parameterize params