Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #42 from ValleSaude/feature/partial-refund
Browse files Browse the repository at this point in the history
Adding refund parameter in refund create method to pass body params (allowing partial refund)
  • Loading branch information
somentelucas authored Apr 1, 2019
2 parents 59ac5b1 + 6540918 commit 65f9b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/resources/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ var _authorize = function _authorize(opts, _id, amount) {
return _api2.default.get(opts, null, null, { customUrl: _endpoints2.default.sandbox.v2.authorizePaymentSimulationUrl + '?payment_id=' + _id + '&amount' + amount });
};

var refund = function refund(opts, _id) {
return _api2.default.post(opts, '/payments/' + _id + '/refunds');
var refund = function refund(opts, _id, refund) {
return _api2.default.post(opts, '/payments/' + _id + '/refunds', refund);
};

var getRefunds = function getRefunds(opts, _id) {
Expand Down

0 comments on commit 65f9b68

Please sign in to comment.