Add BasePaymentProvider.refund_matching_id

This commit is contained in:
Raphael Michel
2023-02-15 11:58:44 +01:00
parent f09878df9f
commit c2c7e58fd6
3 changed files with 15 additions and 0 deletions

View File

@@ -557,6 +557,9 @@ class StripeMethod(BasePaymentProvider):
def matching_id(self, payment: OrderPayment):
return payment.info_data.get("id", None)
def refund_matching_id(self, refund: OrderRefund):
return refund.info_data.get('id', None)
def api_payment_details(self, payment: OrderPayment):
return {
"id": payment.info_data.get("id", None),