Skip to content
Snippets Groups Projects
Commit 6f0424ec authored by Jamie McClelland's avatar Jamie McClelland Committed by mattwire
Browse files

Include comments so we don't remove the X in the future.

parent 0d3a57f8
No related branches found
No related tags found
1 merge request!156avoid "Statement descriptors require at least one alphanumeric character"
...@@ -945,6 +945,9 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment { ...@@ -945,6 +945,9 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
*/ */
private function getDescription($params, $type = 'description') { private function getDescription($params, $type = 'description') {
# See https://stripe.com/docs/statement-descriptors # See https://stripe.com/docs/statement-descriptors
# And note: both the descriptor and the descriptor suffix must have at
# least one alphabetical character - so we ensure that all returned
# statement descriptors minimally have an "X".
$disallowed_characters = ['<', '>', '\\', "'", '"', '*']; $disallowed_characters = ['<', '>', '\\', "'", '"', '*'];
$contactContributionID = $params['contactID'] . 'X' . ($params['contributionID'] ?? 'XX'); $contactContributionID = $params['contactID'] . 'X' . ($params['contributionID'] ?? 'XX');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment