#sparklefaces_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1481026624504856880
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sparklefaces_webhooks, 4 hours ago, 4 messages
Hi ๐ if you're creating these Checkout Sessions with a mode of payment, then I think payment_intent_data.statement_descriptor or payment_intent_data.statement_descriptor_suffix are what you're looking for:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-statement_descriptor
Let me know if that doesn't seem to be what you're after though
i'm using mode="subscription",, is there a way to do it when i'm using subscription payments?
Ah, the use of Subscriptions makes this a bit more complicated. Have you already been testing this out and looked at what the calculated_statement_descriptor is when the Subscription creates a Charge? If so, can you share a related Charge ID or Chekcout Session ID. To help us understand where we're starting from.
Here is an example charge id:
ch_3T9TgXG8idHnTSat1HymJeXj
I'm not sure what the calculated_statement_descriptor is (how can I check that), but in the stripe dashboard, I see 'Settlement merchant' as 'test company'.
can you also clarify if i should use only one stripe account for both websites, or should I be creating a new stripe account for my other website?
This part is a better question for my support team:
https://support.stripe.com/?contact=true
My understanding is that one account is fine and is usually what I would recommend, but I'm not sure if the same legal entity can have multiple Stripe accounts.
Popular articles
Ah ok, then yea, is there a way to set the credit card statement description then? I'm afraid the customer may do a chargeback since the company name doesnt match the website names. It would have to be set programatically from each application, I guess?
Hi there,
taking over for my colleague who had to step away Let me catch up real quick
So you have two websites using the same Stripe account, and you want to make sure, when creating a checkout session in subscription mode, that the statement descriptor references the right website?
yes
Ok, my colleague already stated, for subscription mode it's a bit more tricky. But there is a way... However I want to mention first, that in the end the bank decides what they will display on the customers bank statement.
With that being said, a way of doing this is to create products specific for each website and set the statement_descriptor on the product https://docs.stripe.com/api/products/create#create_product-statement_descriptor
Caviat, if you have a subscription with multiple products with different statement descriptors, we will pick the descriptor of the first product.
Thanks, I'll take a look. On web1.com, a customer can purchase 2 different types of subscriptions: a mid tier, a professional tier. Both have different price points.
Do I create a stripe Product() object for both my mid and professional tier? If so, the name potentially showing up on the customer's cc statement will be the product name, and not my web1.com name?
Also how does creating a stripe Product() relate to the stripe checkout session? Here is how I set up my checkout session:
billing_address_collection="required",
automatic_tax={"enabled": True},
ui_mode="embedded",
line_items=[{
"price_data": {
"currency": "usd",
"product_data": {"name": TIERS[subscription_tier].display_name},
"unit_amount": TIERS[subscription_tier].price_cents,
"recurring": {"interval": "month"},
},
"quantity": 1,
}],
mode="subscription",
payment_method_types=["card"],
payment_method_options={"card": {"request_three_d_secure": "any"}},
return_url="http://localhost:5000/payment/success",
)
I have a line item that I use to charge for the subscription, but now that I need to integrate Products() instead, do I somehow set that product object here as a line item?
Or do you mean just create a product called 'web1.com' and have the customer purchase this product? But then how would I set the different prices for the different subscription tiers?
Oh you are using inline prices. There is no way to set the statement descriptor on product or price this way
If I replace the line item with a stripe Product():
https://docs.stripe.com/api/products
Then how do I charge the customer using my stripe checkout session? And if I do so, will the customer potentially see the product name instead of 'web1.com' on their cc statement?
You create a Product with the statement descriptor, then create a price and attach it to the new product. Then use the line_items.price parameter https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-price with the price ID of the new created price.
I tested this on my end just now and it worked. I created a product with the statment descriptor "Web1 statment", created a recurring price and attached it to the product. I then used that price as a line item in a checkout session. After the checkout session completed I looked at the created Charge and it showed the right statement descriptor
thank you, I'll try this out!
would I create two products with the same name: "web1 statement", but with different prices? so if the customer buys either of the tiers, then their cc statement will still be "web1 statement"?
The name of the product is not important, but the statement descriptor field should always be the one for the right website.
So if you have a product with mutliple tiers, you would have something like
Product name: mid tier - statement descriptor: websiteA - price A
Product name: mid tier - statement descriptor: websiteB - price B
Product name: pro tier - statement descriptor: websiteA - price C
Product name: pro tier - statement descriptor: websiteB - price D
thank you!
No problem