#Alex-Java

1 messages · Page 1 of 1 (latest)

subtle temple
#

Hi there, what's the SDK version that you are using? and what's the Stripe API version in your account?

mint galleon
#

Thanks for the quick response Jack. I'm using Java SDK 20.63.1 , API version 2020-08-27.

subtle temple
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details

#

and the event ID as well, thanks

mint galleon
#

Sure, I can DM them to you.

subtle temple
#

You can share it here, only Stripe engineer can access your account.

mint galleon
#

Yep
account ID: acct_1FFmk8Fu2t0svUePjMEd
Example event ID: pi_2L3Xjok8Fu2t0svU1jl6syxp

subtle temple
#

Thanks, just want to be sure, you want to get the decline code (i..e, processing_error) from this payment intent?

mint galleon
#

No, I want the numeric value.

#

e.g. for that event the fields are:
"network_advice_code": "02",
"network_decline_code": "82",

subtle temple
#

Got it, these two fields are in the Charge object.

#

Hmm, because they are included in the beta feature, and that's why the public Java SDK doesn't serialize them.

mint galleon
#

Ah, I didn't realize they were beta. That explains a lot.

subtle temple
#

You can use the getRawJsonObject method to access properties that are not directly exposed by Stripe's Java library.

#

i.e., charge.outcome.getRawJsonObject().get("network_advice_code")

mint galleon
#

Yep, ok thanks! I'll see what I can do with that.