mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Add payment provider specific details to the API
This commit is contained in:
@@ -411,6 +411,12 @@ class StripeMethod(BasePaymentProvider):
|
||||
}
|
||||
return template.render(ctx)
|
||||
|
||||
def api_payment_details(self, payment: OrderPayment):
|
||||
return {
|
||||
"id": payment.info_data.get("id", None),
|
||||
"payment_method": payment.info_data.get("payment_method", None)
|
||||
}
|
||||
|
||||
def payment_control_render(self, request, payment) -> str:
|
||||
if payment.info:
|
||||
payment_info = json.loads(payment.info)
|
||||
|
||||
Reference in New Issue
Block a user