#lelouch
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Setting up fixture for: cardholder
Running fixture for: cardholder
Setting up fixture for: card
Running fixture for: card
Trigger failed: Request failed, status=400, body={
"error": {
"message": "This cardholder has outstanding requirements preventing them from activating an issued card. Read more at https://stripe.com/docs/issuing/cards",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_te7pNcuHvtSSuM?t=1690961484",
"type": "invalid_request_error"
}
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
event {
id: 'evt_1NaZWhC2b2UXE1UE2MFhTsZz',
object: 'event',
api_version: '2022-08-01',
created: 1690961483,
data: {
object: {
id: 'ich_1NaZWhC2b2UXE1UEUM5gijdF',
object: 'issuing.cardholder',
billing: [Object],
company: null,
created: 1690961483,
email: null,
individual: null,
livemode: false,
metadata: {},
name: 'mycardholder',
phone_number: null,
preferred_locales: [],
requirements: [Object],
spending_controls: [Object],
status: 'active',
type: 'individual'
}
},
livemode: false,
pending_webhooks: 2,
request: {
id: 'req_pNmkiKdlMkCDl3',
idempotency_key: '44106d6b-0151-4fa1-8936-4b7200d3546c'
},
type: 'issuing_cardholder.created'
}
POST /api/stripe/payments/webhook
event {
id: 'evt_1NaZWiC2b2UXE1UE1f9KuWn9',
object: 'event',
api_version: '2022-08-01',
created: 1690961484,
data: {
object: {
id: 'ich_1NaZWhC2b2UXE1UEUM5gijdF',
object: 'issuing.cardholder',
billing: [Object],
company: null,
created: 1690961483,
email: null,
individual: null,
livemode: false,
metadata: {},
name: 'mycardholder',
phone_number: null,
preferred_locales: [],
requirements: [Object],
spending_controls: [Object],
status: 'active',
type: 'individual'
},
previous_attributes: { requirements: [Object] }
},
livemode: false,
pending_webhooks: 2,
request: { id: null, idempotency_key: null },
type: 'issuing_cardholder.updated'
}
i get two events in the webhook
how do i make an authorization.request for a specific card ? testing mode
I can't reproduce the problem, can you run again?
actually can ignore the problem i think that cli event creates new cardholder before it makes the event
my main goal is how to make req for a specific card ?
stripe trigger issuing_authorization.request do i put the card details at the end ?
What do you mean by card details? I don't think you can specify the card number when creating a issuing card.
when a user makes a purchase that event will be called as stated in the doc
but i dont have a place to be testing real life card purchases
but the cli event has that specific event
so my question is how do i make that event for a specific virtual card ?
ahaha, let say u make a purchase with ur card, now i need to get the event
just like the doc says
which i have to aprove or decline
Have you set up your webhook endpoint for authorization?
but that event comes from ur card not anyone else
so how do i do same in the stipe cli ?
yes i did
basically stripe trigger issuing_authorization.request is supposed to create a purchase right ?
which my backend webhook will recieve and will decide if to accept or decline
right ?
Hi! I'm taking over this thread. Give me a few minutes to catchup.
hello sure
If I understand correctly, you get an error when running stripe trigger issuing_authorization.request?
So you are using our Stripe Issuing product? And can you clarify exactly what is the error you see?
um lets ignore the error
because it creates a new cardholder which is not what i am after
the question is
based on what the doc says
when a purchase is made
issuing_authorization.request webhook event is called
the organization has to aprove or decline withi 2s
now thats in real life senerios
but i am doing testing which means i dont have places to be doing purchases and testing the card number and so on ...
its why the Stripe CLI exist to help make test events to simulate real life events
when a purchase is made issuing_authorization.request webhook event is called the organization has to aprove or decline withi 2s now thats in real life senerios
Yes that's correct
and one of the event the cli provides is issuing_authorization.request
but if i trigger that its not issuing for a specific card, which means it will will create a cardholder
and thats not what i am after
what i am after is to trigger "issuing_authorization.request" + the card details of which i want to issue the authorization to
so that when i get the webhook data i am able to say ok this came from this card or cardholders card
i dont know if you get it ? 🤣
or even if you dont get it, how to make a purchase for a specific card/cardholder from the cli ?
You have a couple options:
- Create your own fixture, to customize exactly what events are triggered by the Stripe CLI. You can learn more about this here: https://github.com/stripe/stripe-cli/wiki/fixtures-command
- Don't use the Stripe CLI, and write your own code to trigger exactly what you want
- You could aslo use the
--overrideflag when using trigger, to change some of the properies of the event: https://stripe.com/docs/cli/trigger#trigger-override