Added a new listener to webhook event payment_intent.succeeded. This triggers the capture actions for order in Magento and generates an invoice. Earlier, the only webhook responsible for generating invoice in magento was payment_attempt.capture_requested. Now, we observe both the webhooks and generates an invoice for whichever webhook triggers first. Once an invoice is generated, the next call to generate invoice from other webhook is skipped.
Added a new listener to webhook event payment_intent.succeeded. This triggers the capture actions for order in Magento and generates an invoice. Earlier, the only webhook responsible for generating invoice in magento was payment_attempt.capture_requested. Now, we observe both the webhooks and generates an invoice for whichever webhook triggers first. Once an invoice is generated, the next call to generate invoice from other webhook is skipped.