From 9e6ed7808cb4c75dd5937a025ab83068a0ed63cd Mon Sep 17 00:00:00 2001 From: Fabien Le Frapper Date: Wed, 10 Apr 2024 22:49:51 +0200 Subject: [PATCH] move customer_data field to metadata Ref https://github.com/jazzband/django-payments/issues/378 --- payments/stripe/providers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/payments/stripe/providers.py b/payments/stripe/providers.py index 8f37d18b3..0c69651b8 100644 --- a/payments/stripe/providers.py +++ b/payments/stripe/providers.py @@ -130,8 +130,8 @@ def create_session(self, payment): if payment.billing_first_name or payment.billing_last_name: session_data.update( { - "customer_data": { - "customer_name": f"{payment.billing_first_name} " + "metadata": { + "customer_name": f"{payment.billing_first_name} " f"{payment.billing_last_name}" } }