Compare commits

...

2 Commits

Author SHA1 Message Date
Raphael Michel
c190fc315c Bump to 2023.10.1 2024-01-17 22:32:06 +01:00
Raphael Michel
eebd499359 Fix #3810 -- Stripe: Move to statement_descriptor_suffix 2024-01-17 22:31:18 +01:00
2 changed files with 6 additions and 2 deletions

View File

@@ -19,4 +19,4 @@
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
# <https://www.gnu.org/licenses/>.
#
__version__ = "2023.10.0"
__version__ = "2023.10.1"

View File

@@ -924,6 +924,11 @@ class StripePaymentIntentMethod(StripeMethod):
}
})
if self.method == "card":
params['statement_descriptor_suffix'] = self.statement_descriptor(payment)
else:
params['statement_descriptor'] = self.statement_descriptor(payment)
intent = stripe.PaymentIntent.create(
amount=self._get_amount(payment),
currency=self.event.currency.lower(),
@@ -935,7 +940,6 @@ class StripePaymentIntentMethod(StripeMethod):
event=self.event.slug.upper(),
code=payment.order.code
),
statement_descriptor=self.statement_descriptor(payment),
metadata={
'order': str(payment.order.id),
'event': self.event.id,