Open belcedogru opened 1 year ago
All of the below updates will happen under the frontend-react-cra/ folder.
import '@onefootprint/footprint-js/dist/footprint-js.css'; import { FootprintVerifyButton, FootprintForm } from '@onefootprint/footprint-react'; import { FootprintFormType } from '@onefootprint/footprint-js'; const Page = () => { const handleVerifyCancel = () => { console.log('user canceled'); }; const handleCardSaved = () => { console.log('user card data saved'); }; return ( <main> <FootprintVerifyButton publicKey="ob_test_VMooXd04EUlnu3AvMYKjMW" onComplete={handleVerifyComplete} onCancel={handleVerifyCancel} /> <FootprintForm authToken={secretAuthToken} type={FootprintFormType.cardAndZip} variant="inline" title="Payment information" /> </main> ); };
Make sure to keep the container div that has 500px width and height around the footprint form.
🛠️🚫 Codegen couldn't figure out how to fit this into a PR. Add more context/direction then try again! (Remove/re-add the Codegen label)
View logs ↗
All of the below updates will happen under the frontend-react-cra/ folder.
Make sure to keep the container div that has 500px width and height around the footprint form.