#greenlane-otavio_webhooks

1 messages ¡ Page 1 of 1 (latest)

hazy sedgeBOT
#

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

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

runic fossil
#

Which field(s) specifically are you referencing?

harsh frost
#

the issuer at the card

#

at the payment_method: pm_1QAra41njmFqhzphcgAudYPn

runic fossil
#

OK, and you expect to find that field in the setup_intent.succeeded event?

harsh frost
#

Yes, in this event

#

at the event it returns to me

runic fossil
#

You'd need to expand the payment_method field from the event. It's not included in the event payload by default

harsh frost
#

but at the Java API it returns some informations:

"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": "pass"
},
"country": "US",
"description": null,
"display_brand": "visa",
"exp_month": 10,
"exp_year": 2025,
"fingerprint": "5HEtFZvMGkYtkqh2",
"funding": "credit",
"generated_from": null,
"iin": null,
"issuer": null,
"last4": "4242",
"networks": {
"available": [
"visa"
],
"preferred": null
},
"three_d_secure_usage": {
"supported": true
},
"wallet": null
}

runic fossil
#

What API call is that from?

harsh frost
#

it cames from the Java SDK, let me check the method exacly, one second

#

fun getPaymentMethodById(paymentMethodId: String): PaymentMethod {
return try {
logger.info("Retrieving payment method with ID: $paymentMethodId")
val paymentMethod = PaymentMethod.retrieve(paymentMethodId)
logger.info("Payment method found: ${paymentMethod.id}")
paymentMethod
} catch (e: Exception) {
logger.error("Failed to retrieve payment method with ID: $paymentMethodId", e)
throw BaseException("Failed to retrieve payment method with ID: $paymentMethodId")
}
}

#

It cames from the: PaymentMethod.retrieve(paymentMethodId)

runic fossil
#

So you need to make the API call to retrieve the issuer/card details

harsh frost
#

Thanks

#

I guess it should be the:
Stripe.Issuing.Card.retrieve(cardId)
I am right?

runic fossil
#

No, the code you just shared is the code you need

runic fossil
harsh frost
#

I don't follow you, because my code is the one that I am using and it returns only the partial information of card

#

How to get the whole card information?