Add BasePaymentProvider.matching_id()

This commit is contained in:
Raphael Michel
2020-01-27 21:46:36 +01:00
parent 8c7d7a3055
commit 889dd651ef
5 changed files with 36 additions and 1 deletions

View File

@@ -432,6 +432,9 @@ class StripeMethod(BasePaymentProvider):
}
return template.render(ctx)
def matching_id(self, payment: OrderPayment):
return payment.info_data.get("id", None)
def api_payment_details(self, payment: OrderPayment):
return {
"id": payment.info_data.get("id", None),