DavidAJohn / PhotoPortfolio

Personal photo portfolio .NET web application which implements a Blazor and Tailwind CSS user interface with a MongoDb database, and includes integration with Stripe Checkout and Prodigi Print API
0 stars 0 forks source link

Prodigi order creation - send payment intent id in metadata #65

Closed DavidAJohn closed 9 months ago

DavidAJohn commented 9 months ago

The Prodigi order object allows a set of key value pairs to be added in a custom metadata field.

This could be used to send the Stripe payment intent Id, thereby enabling a kind of belt and braces check when the response is returned, ensuring that the metadata value returned matches our existing recorded value.

Is it overkill though? We're already sending the order's guid in the idempotency key field.