#Alex-Java
1 messages · Page 1 of 1 (latest)
Hi there, what's the SDK version that you are using? and what's the Stripe API version in your account?
Thanks for the quick response Jack. I'm using Java SDK 20.63.1 , API version 2020-08-27.
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
Sure, I can DM them to you.
You can share it here, only Stripe engineer can access your account.
Yep
account ID: acct_1FFmk8Fu2t0svUePjMEd
Example event ID: pi_2L3Xjok8Fu2t0svU1jl6syxp
Thanks, just want to be sure, you want to get the decline code (i..e, processing_error) from this payment intent?
No, I want the numeric value.
e.g. for that event the fields are:
"network_advice_code": "02",
"network_decline_code": "82",
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.
Ah, I didn't realize they were beta. That explains a lot.
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")
Yep, ok thanks! I'll see what I can do with that.