wagnerwagner/merx

Stripe statement descriptor

efavaro opened this issue · 3 comments

After a purchase I noticed in the support phone number set in Stripe appears in the bank statement descriptor.
I tried adding the shortened descriptor in Stripe config, but nothing changes and the number is still there.

While reading this https://stripe.com/docs/statement-descriptors I was wondering that this probably can be achieved by adding it to here

$intent = \Stripe\PaymentIntent::create(array_merge([
using an option perhaps?

In the develop-branch I’ve updated the Cart::getStripePaymentIntent() method. You can now pass additional $params.

The following should work (untested)

$paymentIntent = $cart->getStripePaymentIntent([
  'statement_descriptor' => 'Custom descriptor',
]);

Further information:

Thank you! I will try it out.

Published in 1.5.0-rc.1