Skip to content

Commit

Permalink
Merge pull request #71 from Aguiiiar/fix/preapproval-slash-error
Browse files Browse the repository at this point in the history
Fix URI formation in update method by adding missing '/'
  • Loading branch information
renanneri01 authored Jun 24, 2024
2 parents 86cd378 + e058552 commit 76f7231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mercadopago/resources/preapproval.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ def update(self, preapproval_id, preapproval_object, request_options=None):
if not isinstance(preapproval_object, dict):
raise ValueError("Param preapproval_object must be a Dictionary")

return self._put(uri="/preapproval" + str(preapproval_id),
return self._put(uri="/preapproval/" + str(preapproval_id),
data=preapproval_object, request_options=request_options)

0 comments on commit 76f7231

Please sign in to comment.