#JIMJIM26-checkout
1 messages · Page 1 of 1 (latest)
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it's already done but it doesn't work on old payments with stripe wording. It doesn't change.
New payments it’s good
you can't change it retroactively
the charge already happened and is on their bank statement already, you can't change that
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.
it uses the details of the Product that the subscription is for (https://stripe.com/docs/api/products/object#product_object-statement_descriptor) so you can edit that Product to change it
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
see above, you'd update the product that subscription is using
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?