#fwdawid_api

1 messages · Page 1 of 1 (latest)

pliant thicketBOT
#

👋 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.

dreamy mirage
#

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

topaz dust
#

Hey!

#

What do you mean by Commercial or not?

#

Do you mean if it is a coporate card or not?

dreamy mirage
#

Exactly

topaz dust
#

This document talks about how you can inspcet the card product code and check if it's a corporate card

pliant thicketBOT
topaz dust
#

Seems like the card product code for corporate cards are: k

dreamy mirage
#

Yeah, we tried it but brand_product never returned in payment method details

somber rune
#

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 the brand_product is null

dreamy mirage
#

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

somber rune
#

if you are using Link, then it's no longer a Card. so you get less details in the PaymentMethod object.

dreamy mirage
#
{
  "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

somber rune
#

having a look

dreamy mirage
#
When using the Payment Intents API for e-commerce payment

is this e-commerce thing something we need to set explicite?

somber rune
#

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.

#

the documentation page is not clear at all about this, so I'll make sure we update it.

dreamy mirage
#

Cool! On it! Thank you!

dreamy mirage
#

I also tried to report bug with stripe address element.
But it says I should use same thread, is this correct?

somber rune
#

if you have another question, you can post it here yes

dreamy mirage
#

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.

somber rune
#

could you share a video of the issue?

pliant thicketBOT
tranquil tendon
#

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

dreamy mirage
#

Ok, I'll record video later today, and share it through emial

tranquil tendon
#

thank you! repro steps and code too will help