#victory_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1357356220658221266
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- victory_webhooks, 5 minutes ago, 25 messages
- victory_issuing, 1 day ago, 78 messages
I want to check issuing_transaction.created this triger on cli but
This event is not supported on cli
So I tried to on stripe account dashborad here
how can I test it?
What docs are you following that suggest using the CLI for this? THe docs we linked in the previous thread explain how to do this with the API or Dashboard
You can use the https://api.stripe.com/v1/test_helpers/issuing/authorizations endpoint via API
Or the Dashboard flow to create a test authorization
The CLI does not support testing issuing authorizations
One more question
When I create new issuing card via api on my project, It's not activated?
How to activate it via api
๐ stepping in as synthrider needs to step away
You need to accept the terms for the Cardholder to activate: https://docs.stripe.com/issuing/cards/virtual/issue-cards?testing-method=with-code#accept-authorized-user-terms
Then you activate as shown here: https://docs.stripe.com/issuing/cards/virtual/issue-cards?testing-method=with-code#activate-the-card
"This cardholder has outstanding requirements preventing them from activating an issued card. Read more at https://stripe.com/docs/issuing/cards"
$card = Card::create([
'cardholder' => $cardholderId,
"currency" => "GBP",
'type' => 'virtual', // Change to 'physical' for a physical card
'status' => 'active'
]);
Here is code
When I remove 'status' => 'active' it works but
Card is not activated
How can I create activated card?
Did you read the above docs?
Yes but I do'nt understand what I have to do for that
You need to set the user_terms_acceptance for the Cardholder as shown in: https://docs.stripe.com/issuing/cards/virtual/issue-cards?testing-method=with-code#accept-authorized-user-terms
return \Stripe\Issuing\Cardholder::create([
'name' => $name,
'email' => $email,
'phone_number' => $phone, // Replace with a valid phone number
'status' => 'active',
'type' => 'individual',
'billing' => [
'address' => $formattedAddress
],
'user_terms_acceptance' => [
'date' => time(), // Current timestamp (Unix time)
'ip' => request()->ip(), // User's IP address (can be fetched dynamically)
],
]);
This is my code and I can see this error
"Received unknown parameter: user_terms_acceptance"
Could you please help me with this?
Please look at the docs... it should be:
'individual' => [
'card_issuing' => [
'user_terms_acceptance' => [
'date' => 1470266163,
'ip' => '91.121.146.224',
],
],
],
return \Stripe\Issuing\Cardholder::create([
'name' => $name,
'email' => $email,
'phone_number' => $phone, // Replace with a valid phone number
'status' => 'active',
'type' => 'individual',
'billing' => [
'address' => $formattedAddress
],
'individual' => [
'card_issuing' => [
'user_terms_acceptance' => [
'date' => time(), // Current timestamp (Unix time)
'ip' => request()->ip(), // User's IP address (can be fetched dynamically)
],
],
],
]);
Now this is my code but I can see this error still "This cardholder has outstanding requirements preventing them from activating an issued card. Read more at https://stripe.com/docs/issuing/cards"
I have to create cardholder and update it for user_terms_Aceptance?
Can you share the request ID for that most recent request?
Sorry what is request id here
?
How can I get it?
You would grab it from your Dashboard or from the request's response headers: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Sorry I can't find request id
Ah just a second
req_X9vdrasueJSeSz
This is my request
return \Stripe\Issuing\Cardholder::create([
'name' => $name,
'email' => $email,
'phone_number' => $phone, // Replace with a valid phone number
'status' => 'active',
'type' => 'individual',
'billing' => [
'address' => $formattedAddress
],
'individual' => [
'card_issuing' => [
'user_terms_acceptance' => [
'date' => time(), // Current timestamp (Unix time)
'ip' => request()->ip(), // User's IP address (can be fetched dynamically)
],
],
],
]);
This is my request but I can see card_issuing is null on my log
Very strange
I don't think the user_terms_acceptance is returned there in this response.
That said, if you look at the request there are outstanding requirements for first and last name
You need to pass first and last name in the individual hash: https://docs.stripe.com/api/issuing/cardholders/object#issuing_cardholder_object-individual-first_name
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.