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

Function onApprove

frontend/src/components/PaypalButton.js:31–34  ·  view source on GitHub ↗
(data, actions)

Source from the content-addressed store, hash-verified

29 });
30
31 const onApprove = (data, actions) => actions.order
32 .capture()
33 .then(details => props.onSuccess(data, details))
34 .catch(err => console.log(err));
35
36 useEffect(() => {
37 if (!window.paypal) {

Callers 1

PaypalButton.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected