#sparklefaces_api

1 messages ยท Page 1 of 1 (latest)

sage swiftBOT
#

๐Ÿ‘‹ 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.

vapid coral
edgy dagger
#

i'm using mode="subscription",, is there a way to do it when i'm using subscription payments?

sage swiftBOT
vapid coral
#

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.

edgy dagger
#

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?

vapid coral
edgy dagger
#

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?

azure moss
#

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?

edgy dagger
#

yes

azure moss
#

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.

#

Caviat, if you have a subscription with multiple products with different statement descriptors, we will pick the descriptor of the first product.

edgy dagger
#

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?

azure moss
#

Oh you are using inline prices. There is no way to set the statement descriptor on product or price this way

edgy dagger
azure moss
#

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

edgy dagger
#

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"?

azure moss
#

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

edgy dagger
#

thank you!

azure moss
#

No problem