Skip to content

Commit

Permalink
Added proper support for refunding transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
JDrosdeck committed Jul 16, 2011
1 parent 4b28994 commit 50a9665
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boto/fps/connection.py
Expand Up @@ -314,13 +314,15 @@ def settle(self, reserveTransactionId, transactionAmount=None):
else:
raise FPSResponseError(response.status, response.reason, body)

def refund(self, callerReference, transactionId, refundAmount=None, callerDescription=None):
def refund(self, callerReference, transactionId, reund_sender_id, caller_token_id, refundAmount=None, callerDescription=None):
"""
Refund a transaction. This refunds the full amount by default unless 'refundAmount' is specified.
"""
params = {}
params['CallerReference'] = callerReference
params['TransactionId'] = transactionId
params['RefundSenderTokenId'] = refund_sender_id
params['CallerTokenId'] = caller_token_id
if(refundAmount != None):
params['RefundAmout.CurrencyCode'] = 'USD'
params['RefundAmount.Amount'] = refundAmount
Expand Down

0 comments on commit 50a9665

Please sign in to comment.