#fwdawid_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/1445681274147573935
📝 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.
- fwdawid_api, 20 hours ago, 4 messages
Answering previous thread question:
do you need those details pre or post payment?
if post-payment, then those details are on the Charge object: https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card
we need it post payment (up to 12h)
we tried to investigate charge object, but there is no clear infromation if it's commercial or not
Hey!
What do you mean by Commercial or not?
Do you mean if it is a coporate card or not?
Exactly
This document talks about how you can inspcet the card product code and check if it's a corporate card
Seems like the card product code for corporate cards are: k
hi! I'm taking over this thread.
based on the doc shared above:
The brand_product field might be null if the product code hasn’t been collected yet (for example, when creating a card) or the product codes for the particular card network aren’t supported. We currently support Visa and Mastercard product codes only.
so it's possible that thebrand_productis null
can you try with one of the test card listed here: https://docs.stripe.com/card-product-codes#testing
Yeah, I can try in a moment - need to disable Link on our sandbox
As for link it hides whole details about card I think
if you are using Link, then it's no longer a Card. so you get less details in the PaymentMethod object.
{
"id": "pm_1SaB1TLgTfxsYzuGepeQEpDm",
"object": "payment_method",
"allow_redisplay": "unspecified",
"billing_details": {
"address": {
"city": "",
"country": "xxxx",
"line1": "",
"line2": "",
"postal_code": "xxxxxx",
"state": ""
},
"email": "xxxx",
"name": null,
"phone": null,
"tax_id": null
},
"card": {
"brand": "mastercard",
"checks": {
"address_line1_check": null,
"address_postal_code_check": "pass",
"cvc_check": "pass"
},
"country": "AU",
"display_brand": "mastercard",
"exp_month": 2,
"exp_year": 2027,
"fingerprint": "c4nhoyhvOL8Sh0cQ",
"funding": "credit",
"generated_from": null,
"issuer": "GLOBAL CARD SA",
"last4": "0007",
"networks": {
"available": [
"mastercard"
],
"preferred": null
},
"regulated_status": "unregulated",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1764748971,
"customer": null,
"livemode": false,
"metadata": {},
"type": "card"
}
I used 5555050360000007 < this card
having a look
When using the Payment Intents API for e-commerce payment
is this e-commerce thing something we need to set explicite?
I just figured it out! it turns out that brand_product is not available by default, that's something that needs to be activated on your account to be returned.
and if you want to have access to this feature, you'll need to ask Stripe Support: https://support.stripe.com/contact
the documentation page is not clear at all about this, so I'll make sure we update it.
Cool! On it! Thank you!
I also tried to report bug with stripe address element.
But it says I should use same thread, is this correct?
if you have another question, you can post it here yes
We noticed that if you are logged in to link and use saved addresses, and then logout from link it causes an error where "billing is same..." checkbox is checked, but also fields become visible / required.
could you share a video of the issue?
for the Address Element bug, I'd recommend writing in to our team directly with reproduction steps and we can investigate further there: https://support.stripe.com/contact/email?topic=api_integration
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Ok, I'll record video later today, and share it through emial
thank you! repro steps and code too will help