@oneblink/apps-react
    Preparing search index...

    Variable ApprovalStepPaymentReceipt

    ApprovalStepPaymentReceipt: MemoExoticComponent<
        (
            __namedParameters: {
                approvalId: string;
                onCancel: () => Promise<void>;
                onDone: () => Promise<void>;
            },
        ) => Element,
    >

    Component for rendering an approval step payment receipt. Try Again replaces a checkout that is still in progress and starts another payment for the same approval step. The developer implements what happens when the user clicks 'Done' or 'Cancel'.

    It is also recommended to import the css from this library as well.

    import { ApprovalStepPaymentReceipt } from '@oneblink/apps-react'
    import '@oneblink/apps-react/dist/styles.css'
    import React from 'react'
    import ReactDOM from 'react-dom'
    import { ApprovalStepPaymentReceipt } from '@oneblink/apps-react'
    import '@oneblink/apps-react/dist/styles.css'

    function ReceiptContainer() {
    const handleDone = React.useCallback(async () => {
    console.log('All done!')
    }, [])
    const handleCancel = React.useCallback(async () => {
    console.log('Cancelled!')
    }, [])

    return (
    <ApprovalStepPaymentReceipt
    approvalId="d27966cc-128d-48a2-b681-6ad52012e113"
    onDone={handleDone}
    onCancel={handleCancel}
    />
    )
    }

    function App() {
    return (
    <IsOfflineContextProvider>
    <ReceiptContainer />
    </IsOfflineContextProvider>
    )
    }

    const root = document.getElementById('root')
    if (root) {
    ReactDOM.render(<App />, root)
    }