We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b013add commit 94bb7b5Copy full SHA for 94bb7b5
server/client/src/actions/index.js
@@ -6,3 +6,9 @@ export const fetchUser = () => async dispatch => {
6
7
dispatch({ type: FETCH_USER, payload: res.data });
8
};
9
+
10
+export const handleToken = token => async dispatch => {
11
+ const res = await axios.post('/api/stripe', token);
12
13
+ dispatch({ type: FETCH_USER, payload: res.data });
14
+};
0 commit comments