File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
commerce_coordinator/apps/commercetools Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ def refund_from_paypal_task(
89
89
try :
90
90
payment = client .get_payment_by_transaction_interaction_id (paypal_capture_id )
91
91
if has_full_refund_transaction (payment ):
92
- logger .info (f"PayPal payment.capture.refunded event received, but Payment with ID { payment .id } "
93
- f"already has a refund with id: { refund .id } . Skipping task to add refund transaction." )
92
+ logger .info (f"PayPal PAYMENT.CAPTURE.REFUNDED event received, but Payment with ID { payment .id } "
93
+ f"already has a refund with ID: { refund .get ( 'id' ) } . Skipping task to add refund transaction." )
94
94
return None
95
95
updated_payment = client .create_return_payment_transaction (
96
96
payment_id = payment .id ,
@@ -101,6 +101,6 @@ def refund_from_paypal_task(
101
101
return updated_payment
102
102
except CommercetoolsError as err :
103
103
logger .error (f"Unable to create refund transaction for payment { payment .key } "
104
- f"on PayPal refund { refund .id } "
104
+ f"on PayPal refund { refund .get ( 'id' ) } "
105
105
f"with error { err .errors } and correlation id { err .correlation_id } " )
106
106
return None
You can’t perform that action at this time.
0 commit comments