MCPcopy Create free account
hub / github.com/basir/node-react-ecommerce / handleSuccessPayment

Function handleSuccessPayment

frontend/src/screens/OrderScreen.js:21–23  ·  view source on GitHub ↗
(paymentResult)

Source from the content-addressed store, hash-verified

19 }, [successPay]);
20
21 const handleSuccessPayment = (paymentResult) => {
22 dispatch(payOrder(order, paymentResult));
23 }
24
25 const orderDetails = useSelector(state => state.orderDetails);
26 const { loading, order, error } = orderDetails;

Callers

nothing calls this directly

Calls 1

payOrderFunction · 0.90

Tested by

no test coverage detected