Skip to content

Commit

Permalink
Merge pull request #107 from tungleduyxyz/issue_88_update_payment_tra…
Browse files Browse the repository at this point in the history
…nsaction_status_api

Issue 88 Mark a pending payment transaction as succeeded or failed
  • Loading branch information
reshmabidikar authored Apr 19, 2024
2 parents f030b55 + bf61b71 commit cd69043
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/killbill_client/models/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,17 @@ def chargeback_reversals(user = nil, reason = nil, comment = nil, options = {},
end
end

def update_transaction_state(status, control_plugin_name = nil, user, reason, comment, options)
self.class.post "KILLBILL_API_TRANSACTIONS_PREFIX/#{transaction_id}",
{:paymentId => payment_id, :status => status}.to_json,
{:controlPluginName => (control_plugin_name || [])},
{
:user => user,
:reason => reason,
:comment => comment
}.merge(options)
end

private


Expand Down

0 comments on commit cd69043

Please sign in to comment.