Updating user model

To store the Stripe OAuth credentials after a user's Stripe account is successfully connected, we will update the user model with the following field.

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

stripe_seller: {}

The stripe_seller field will store the seller's Stripe account credential, and this will be used when a charge needs to be processed via Stripe for a product they sold from their shop.

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.