Permalink
Browse files

Added proper support for refunding transactions

  • Loading branch information...
1 parent 4b28994 commit 50a96654109945e44256dde7f57100dea4988b5e @JDrosdeck committed Jul 16, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 boto/fps/connection.py
View
@@ -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

0 comments on commit 50a9665

Please sign in to comment.