Reaction log

0 events
Callbacks from the SDK will appear here as they fire.

Snippet

import { StashPay } from '@stashgg/stash-pay';
import '@stashgg/stash-pay/styles';

<StashPay
  isOpen={isOpen}
  checkoutUrl={"https://test.stashpreview.com/"}
  position="bottom-sheet"
  showCloseButton
  dismissOnBackdropClick
  dismissOnEscape
  autoCloseOnSuccess
  autoCloseOnFailure
  animationDuration={300}
  iframe={{
    title: "Stash Pay checkout"
  }}
  onSuccess={(e) => console.log('paid', e.orderId)}
  onFailure={(e) => console.log('failed', e.message)}
  onClose={() => setIsOpen(false)}
/>