May 2018
Intermediate to advanced
470 pages
13h 54m
English
The StripeConnect component will basically complete the remaining auth process steps with Stripe, and render relevant messages based on whether the Stripe connection was successful:

When the StripeConnect component loads, in componentDidMount, we will first parse the query parameters attached to the URL from the Stripe redirect. For parsing, we use the same query-string npm module that we used previously for the product search. Then, if the URL query parameter contains an auth code, we make an API call necessary to complete the Stripe OAuth from our server.
mern-marketplace/client/user/StripeConnect.js:
componentDidMount ...
Read now
Unlock full access