Only update the payment intent if the total price has changed

Created on 10 October 2023, 9 months ago
Updated 31 January 2024, 5 months ago

The module uses an event subscriber to update payment intents at Stripe, the rationale being if the total price of the order changes, the intent needs to be updated to capture the appropriate amount. However, this currently happens on every order update, even if the price hasn't changed.

Let's perform a simple check and not queue an update unless we see that the total price of an order no longer matches the payment intent amount.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rszrama

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024