Customer Description field no longer has contact name, which is now not available in Stripe payment export
When exporting payments from Stripe dashboard, previously the Customer Description field contained contact name + ' (CiviCRM)' but it now contains 'CiviCRM: ' + site name (as described in FAQ. )
This change looks to have happened in commit Description and Customer fields in Stripe backend. Even exporting "All columns" from payment export or selecting custom columns, no field contains the contact name. The nearest is Customer Email but particularly for contribs on behalf of orgs, the contact name is very useful.
$stripeCustomerParams['name'] doesn't seem to be available for export in Stripe but
$stripeCustomerParams['description'] is, what do people think about putting the contact name back in the description field, as it was before the above commit?
First posted on Mattermost, where Matt commented:
Can you open an issue for this? We could look into fixing it if funding was available? but otherwise good to have the issue captured anyway ie. the change you describe was not deliberate but a consequence of other improvements
So the proposal would be, in CRM_Stripe_Customer::getStripeCustomerMetadata(), to replace:
'description' => 'CiviCRM: ' . civicrm_api3('Domain', 'getvalue', ['current_domain' => 1, 'return' => 'name']),
'description' => $contactDisplayName . ' (CiviCRM)',
Does that seem OK? I'll create a PR if so.