#lelouch

1 messages · Page 1 of 1 (latest)

near obsidianBOT
fathom jolt
spare gate
#

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"
}
}

#

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

fathom jolt
#

I can't reproduce the problem, can you run again?

spare gate
#

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 ?

fathom jolt
#

What do you mean by card details? I don't think you can specify the card number when creating a issuing card.

spare gate
#

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 ?

fathom jolt
#

I still struggle to understand you.

#

What's the goal that you want to achieve ?

spare gate
#

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

fathom jolt
#

Have you set up your webhook endpoint for authorization?

spare gate
#

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 ?

covert compass
#

Hi! I'm taking over this thread. Give me a few minutes to catchup.

spare gate
#

hello sure

covert compass
#

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?

spare gate
#

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

covert compass
#

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

spare gate
#

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 ?

covert compass
#

You have a couple options:

spare gate
#

Ooo u mean i cant do directly from cli ?

#

is there any place i can do card testing purchases ?