Payment reference

The payment information will be relevant when the order is updated and a charge needs to be created after an ordered product is processed by the seller. We will record the Stripe Customer ID relevant to the credit card details in a payment_id field in the Order schema.

mern-marketplace/server/models/order.model.js:

payment_id: {},

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.