Sha256: 6e33ae6f5b751671e0fcdea41b19794af24e36a3e2b1f9e1d7548fe69dd5b42b
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
module PagSeguro class Subscriptions < Base def find_by_notification_code(code) parse_body api.get("/pre-approvals/notifications/#{code}") end def create(params) params = parameterize params parse_body api.post("/pre-approvals", params) end def update(code, params) params = parameterize params api.put("/pre-approvals/#{code}/payment-method", params) end def url(code) api.build_url :site, "/v2/pre-approvals/request.html", code: code end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pagseguro_next-0.4.0 | lib/pagseguro/subscriptions.rb |
pagseguro_next-0.3.0 | lib/pagseguro/subscriptions.rb |