#kirubakaran - null client secret

1 messages · Page 1 of 1 (latest)

graceful dawn
#

Hello. What do you mean by this exactly? Can you share the applicable error and/or problematic code (don't share the secret though)?

potent patrol
#

actually i have created a subscription in connect account....when i create a subscription and get the client_secret of an invoice using pamyment_indent.created webhooks it is returned as null. then today when i tried to create the subscription to the same customer i can able to get the client_secret without doing any changes in the code,...what may be the reson for this?

graceful dawn
#

Can you share the 2 event ID's? One where the applicable value is null and the other one where it wasn't

potent patrol
#

client_secret is null in evt_3KWPaaFx11m8e94j1A5O5tza

#

evt_3KWl7rFx11m8e94j0rkwJmTy here i can able to get iit

#

events

graceful dawn
#

Sorry for the delay

#

There are a lot of other threads open

#

Will check in a moment

potent patrol
#

ok thanks

graceful dawn
#

Both of those events have the client secret in the event data

potent patrol
#

but i cant able to view

graceful dawn
#

Check those links

potent patrol
#

{
"object": {
"id": "pi_3KWl7rFx11m8e94j0SWVhFds",
"object": "payment_intent",
"amount": 100,
"amount_capturable": 0,
"amount_received": 0,
"application": "ca_JWvRZfbnjrtcBr0lVh8TiYXyGXgfZHLK",
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_3KWl7rFx11m8e94j0SWVhFds"
},
"client_secret": "pi_3KWl7rFx11m8e94j0SWVhFds_secret_t32N3pIbQ0g3RunVcaOcrSey7",
"confirmation_method": "automatic",
"created": 1645723751,
"currency": "usd",
"customer": "cus_LBHahZAoIO56eF",
"description": "Invoice F2267445-0008",
"invoice": "in_1KWl7pFx11m8e94jD62tgYvd",
"last_payment_error": null,
"livemode": true,
"metadata": {
},
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"installments": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
}

#

this is what i have got

#

{
"object": {
"id": "pi_3KWPaaFx11m8e94j1jpVmILD",
"object": "payment_intent",
"amount": 100,
"amount_capturable": 0,
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_3KWPaaFx11m8e94j1jpVmILD"
},
"client_secret": null,
"confirmation_method": "automatic",
"created": 1645640964,
"currency": "usd",
"customer": "cus_LBHahZAoIO56eF",
"description": "Invoice F2267445-0006",
"invoice": "in_1KWPaYFx11m8e94jaPYvG3hk",
"last_payment_error": null,
"livemode": true,
"metadata": {
},
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"installments": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
}

#

client secret is null here

graceful dawn
#

Is that from those dashboard links I shared?

#

Can you take a screenshot?

potent patrol
#

those links i can't able to open

#

i will share scrernshots

graceful dawn
#

I don't need the screenshots then

#

Ok let me look further

potent patrol
#

please check these

graceful dawn
#

Looking into this further

#

Thanks for your patience

#

Still checking

potent patrol
#

ok..thanks

graceful dawn
#

So this is a Stripe bug actually

#

We're actively working on a fix

#

We will send out an email explaining the issue soon

potent patrol
#

ok

#

thanks