#JIMJIM26-checkout

1 messages · Page 1 of 1 (latest)

left hornet
#

hi! for a one time payment(mode:payment) it's https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-statement_descriptor_suffix and for recurring payments (mode:subscription) it uses the details of the first Product passed to the line_items https://stripe.com/docs/api/products/object#product_object-statement_descriptor

glacial wasp
#

New payments it’s good

left hornet
#

you can't change it retroactively

#

the charge already happened and is on their bank statement already, you can't change that

glacial wasp
#

I know, I'm talking about renewals. I had not changed my bank wording at the beginning so it was striped. When customers are renewed, the caption is always stripe and stripe does not want. I need to have my bank statement on renewals.

#

when creating my stripe account, I left the box empty on the bank label. suddenly the default caption was striped. As a result, when these customers are renewed, the wording always remains striped, which is not good. Stripe asks me to be everywhere my business name.

left hornet
glacial wasp
#

I give you an example. In January 2018, a customer took out a subscription and the bank wording at the time was stripe. In 2022 the bank wording still remains stripe despite the new API. What must be done to have my bank wording on these old payments which are renewed? We use checkout

left hornet
#

see above, you'd update the product that subscription is using

glacial wasp
#

public static function doStripeCheckoutForNewMember($datas)
{
$sessionStripe = Stripe\Checkout\Session::create([
'customer_email' => $datas['email'],
'payment_method_types' => ['card'],
'subscription_data' => [
'items' => [[
'plan' => $datas['id_pricing_plan'],
]],
'trial_from_plan' => true,
],
'allow_promotion_codes' => true,
'success_url' => HOST . '/success',
'cancel_url' => HOST . '/cancel',
]);
$_SESSION['customer_field']['idSession'] = $sessionStripe->id;
$_SESSION['customer_field']['isNewCus'] = true;
return $sessionStripe;
}

#

How can I integrate the statement descriptor in this method?