#nitesh0001_82405

1 messages · Page 1 of 1 (latest)

opaque remnantBOT
sweet jasper
#

Can you be more specific with your question?

mild valley
#

I am getting this response while adding card in stripe account

#

{"setupIntent":{"id":"seti_1NsjT0AXyAi3ow1CWeunYKAM","object":"setup_intent","automatic_payment_methods":null,"cancellation_reason":null,"client_secret":"seti_1NsjT0AXyAi3ow1CWeunYKAM_secret_Og5eZAmrVBIpVWAZ4MV1dxhoNpOUTUp","created":1695289598,"description":null,"last_setup_error":null,"livemode":true,"next_action":null,"payment_method":"pm_1NsjTmAXyAi3ow1CQdZNInun","payment_method_types":["card"],"status":"succeeded","usage":"off_session"}}

#

How can I decode it in JSON? It is not converting

sweet jasper
#

What language are you using?

#

That already looks like json to me

mild valley
#

php

#

no it's not in json

#

I want to get status value from it

#

when I use json parse tool online... it's not parsing it

sweet jasper
#

Are you using our official client library?

mild valley
#

yes

sweet jasper
#

Oh then you should just be able to save the result of confirming a setupintent to a variable and access the status param by doing something like this $intent->status

mild valley
#

I am doing the same

#

but it's not working

sweet jasper
#

What error do you get when you try that

mild valley
#

It is resolved.. thanks