#sagar_88536
1 messages · Page 1 of 1 (latest)
Hey, can you share an example evt_xxx ID?
There should be an account field in the payload assuming you've configured the webhook as a Connect webhook: https://stripe.com/docs/connect/webhooks
currently i am testing in the development/ test environment and i am certainly not getting any of it
How are you receiving/forwarding webhooks to your endpoint(s)?
{
id: 'evt_3OaESRIaeDnhssNw2YL4Z7Ma',
object: 'event',
api_version: '2022-11-15',
created: 1705656831,
data: {
object: {
id: 'pi_3OaESRIaeDnhssNw2NUPdzqs',
object: 'payment_intent',
amount: 400,
amount_capturable: 0,
amount_details: [Object],
amount_received: 400,
application: null,
application_fee_amount: null,
automatic_payment_methods: null,
canceled_at: null,
cancellation_reason: null,
capture_method: 'automatic',
client_secret: 'pi_3OaESRIaeDnhssNw2NUPdzqs_secret_hz9QhoKmxB9CnVyaZCn5eAs2o',
confirmation_method: 'automatic',
created: 1705656831,
currency: 'sek',
customer: 'cus_Oa70jbud1xCKw9',
description: 'ordered food',
invoice: null,
last_payment_error: null,
latest_charge: 'ch_3OaESRIaeDnhssNw2zqzY9WW',
livemode: false,
metadata: {},
next_action: null,
on_behalf_of: null,
payment_method: 'pm_1OXiO0IaeDnhssNwjvnKOwZr',
payment_method_configuration_details: null,
payment_method_options: [Object],
payment_method_types: [Array],
processing: null,
receipt_email: null,
review: null,
setup_future_usage: null,
shipping: null,
source: null,
statement_descriptor: 'EU DIZITAL',
statement_descriptor_suffix: null,
status: 'succeeded',
transfer_data: null,
transfer_group: null
}
},
livemode: false,
pending_webhooks: 2,
request: {
id: 'req_6hwfkDxVN2bqdw',
idempotency_key: '1f30b0b7-d0f9-43eb-8815-870971fffc6f'
},
type: 'payment_intent.succeeded'
}
this is my web hoook response
and there is no account id
Ok, looks like you're using the CLI?
as mentioned in the documentation
stripe listen --forward-to localhost:4242/webhook
yes
is there any other method ??
Ok, and you're testing the Stripe App on the account you're developing it on? I think you're going to need to configure a test install and install it on a different account: https://stripe.com/docs/stripe-apps/test-app
That way you can install it on a different account, and the events should include the account field
i already made a test install
still the webhook part i am not getting the account
And you're using the app and triggering the actions in the app on the test account you installed it on?
It should be a different account to the one you're publishing/developing from
For what?
of getting the account
You can see here that the payload should include an account field: https://stripe.com/docs/stripe-apps/build-backend#receive-events
But only when you're using the app on a different Stripe account via a test install