Skip to content

Commit f28e019

Browse files
committed
Merge pull request #81 from bezidejni/master
Fix for Express facade refund/capture/void methods
2 parents debcfee + 7f956af commit f28e019

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paypal/express/facade.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def refund_transaction(token, amount, currency, note=None):
101101
txn = Transaction.objects.get(token=token,
102102
method=DO_EXPRESS_CHECKOUT)
103103
is_partial = amount < txn.amount
104-
return refund_txn(txn.value('TRANSACTIONID'), is_partial, amount, currency)
104+
return refund_txn(txn.value('PAYMENTINFO_0_TRANSACTIONID'), is_partial, amount, currency)
105105

106106

107107
def capture_authorization(token, note=None):
@@ -110,7 +110,7 @@ def capture_authorization(token, note=None):
110110
"""
111111
txn = Transaction.objects.get(token=token,
112112
method=DO_EXPRESS_CHECKOUT)
113-
return do_capture(txn.value('TRANSACTIONID'),
113+
return do_capture(txn.value('PAYMENTINFO_0_TRANSACTIONID'),
114114
txn.amount, txn.currency, note=note)
115115

116116

@@ -120,4 +120,4 @@ def void_authorization(token, note=None):
120120
"""
121121
txn = Transaction.objects.get(token=token,
122122
method=DO_EXPRESS_CHECKOUT)
123-
return do_void(txn.value('TRANSACTIONID'), note=note)
123+
return do_void(txn.value('PAYMENTINFO_0_TRANSACTIONID'), note=note)

0 commit comments

Comments
 (0)