wagnerwagner / merx

Merx is a plugin to create online shops with Kirby.
https://merx.wagnerwagner.de
104 stars 10 forks source link

Stripe statement descriptor #21

Closed efavaro closed 3 years ago

efavaro commented 4 years ago

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 https://github.com/wagnerwagner/merx/blob/7a52a1693d26478375a87238a093b9976fe2cb86/src/payment.php#L91 using an option perhaps?

tobiasfabian commented 3 years ago

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:

efavaro commented 3 years ago

Thank you! I will try it out.

tobiasfabian commented 3 years ago

Published in 1.5.0-rc.1