Skip to content

Commit 8e1cc0e

Browse files
committed
Added statement descriptor to Stripe Module
Added statement descriptor to be the group's name's first 22 characters. Perhaps a more elegant way might be to have the descriptor be a setting in local_settings.py, and to use the group_name if none is given there.
1 parent 9a9cf13 commit 8e1cc0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

esp/esp/program/modules/handlers/creditcardmodule_stripe.py

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def charge_payment(self, request, tl, one, two, module, extra, prog):
262262
currency="usd",
263263
card=request.POST['stripeToken'],
264264
description="Payment for %s %s - %s" % (group_name, prog.niceName(), request.user.name()),
265+
statement_descriptor=group_name[0:22], #stripe limits statement descriptors to 22 characters
265266
metadata={
266267
'ponumber': request.POST['ponumber'],
267268
},

0 commit comments

Comments
 (0)