airwallex / paymentacceptance-plugin-magento

Airwallex payment magento plugin
12 stars 3 forks source link

MB-22387 - MagentoV2.3 Update order status on payment_intent.succeede… #27

Closed omairkhalidmb closed 1 year ago

omairkhalidmb commented 1 year ago

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.