#nimish-tank_webhooks

1 messages ยท Page 1 of 1 (latest)

worthy shoreBOT
unborn zenithBOT
#

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.

worthy shoreBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255080850928701440

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

hard zenith
#

Hi, what's your question exactly?

vapid cipher
#

web hook call time custom metadata how to add?

hard zenith
#

Could you please formulate your question in a clearer way?

vapid cipher
#

invoice.updated webhook call to set custom metadata

hard zenith
#

What's the exact issue you're facing with this?

vapid cipher
#

hello

hard zenith
#

Hello

worthy shoreBOT
quasi pulsar
#

๐Ÿ‘‹ how may I help?

vapid cipher
#

case 'invoice.updated':
$invoice = $event->data->object;

$is_updated = (isset($invoice->metadata->invoice_updated)) ? $invoice->metadata->invoice_updated : 0;
$is_updated = $is_updated + 1; // Added semicolon here

              $is_update = \Stripe\Invoice::update(
                  $invoice->id,
                  [
                      'metadata' => [
                          'invoice_updated' => $is_updated
                      ]
                  ]
              );

i have to set this code in web hook but its mutliple time call this code how to manage this

quasi pulsar
#

you're updating the invoice on invoice.updated it's normal that it gets called multiple times

#

use invoice.create or invoice.paid to update your metadata instead