#amy_api

1 messages ¡ Page 1 of 1 (latest)

chilly islandBOT
#

👋 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/1237339335657783409

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

clever emberBOT
fair nimbus
#

hi! the fingerprint field works the same in test mode as in livemode. What exact issue are you facing?

grim osprey
#

I can see the fingerprint in stripe's background, but I query it through the API, but I can't get any information about the card. Why?

#

PaymentMethod paymentMethod = PaymentMethod.retrieve(pmId);

#

Is it the same? In the current test environment, the callback information obtained by the front-end after the successful payment, "fingerprint":"[redacted]", what does this mean?

fair nimbus
#

but I query it through the API, but I can't get any information about the card.
what does that mean? I see you made a call to the API via our Java SDK. The finrgerprint would be returned in the response(under .getCard().getFingerprint() as far as I remember). What code are you using, what did you expect to see, what did you see instead?

#

In the current test environment, the callback information obtained by the front-end after the successful payment, "fingerprint":"[redacted]",
where precisely are you seeing that?

#

but like in general yes, the fingerprint is not returned on the frontend(when using publishable API keys), that's expected, it is only returned when using secret API keys on the backend

grim osprey
#

Credit card after successful callback results see

#

fingerprint was this delivered to us at webHook? No sign of it so far

#

response={"billingDetails":{"address":{}},"cardPresent":{},"created":1714026342,"id":"pm_1P9LkY04cT6YoXkE8Q9ha329","livemode":false,"metadata":{},"object":"payment_method","type":"card_present"}

#

If you look at the data returned, there are no crad entities

fair nimbus
fair nimbus
grim osprey
#

Now I want to get this fingerprint, think of three ways:

  1. webHook;
  2. Callback received after the front end swipes the card successfully;
    3, the server side according to pmId, actively query;

What's your suggestion? Which way is more appropriate?

#

Have been paid for the successful order inside the acquisition

fair nimbus
#

1 or 3 works.

grim osprey
#

but 1, I can't see a callback for this fingerprint information

#

If it is 3, do I need to use charge or paymentMethod?

fair nimbus
fair nimbus
grim osprey
#

So far I'm just PaymentMethod.retrieve(), but I don't get the card information

#

Or is it necessary to query when the callback comes back, and now it is not at the callback time, so the query cannot be queried?

fair nimbus
grim osprey
#

I have verified that the fingerprint can be queried using charge, but cannot be queried using paymentMethod

fair nimbus
#

so please show me the exact code you've written to query it, and share an example pm_xxx ID you've used with that code.

grim osprey
#

One more question, just to be clear, is each card going to have a unique fingerprint? Or will some cards have no fingerprints?

#

PaymentMethod paymentMethod = PaymentMethod.retrieve(pmId);

fair nimbus
#

is each card going to have a unique fingerprint?
yes
Or will some cards have no fingerprints?
no, they all have a fingerprint

fair nimbus
#

what do you do with the variable paymentMethod to look at and log the values of the fields you're interested in?

grim osprey
#

pm_1PBCl204cT6YoXkEfsOHuBbX

fair nimbus
#

for example paymentMethod.getCardPresent() etc. Please share the complete code you're using.

grim osprey
grim osprey
#

There is one last question to confirm, that is, webHook will not return the fingerprint, so we need to actively query the API, right?

fair nimbus
grim osprey
#

Okay, so that means you need to actively query the API for fingerprints, right

#

Okay, thank you so much for your support. Love you