Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<iframe
  onLoad={() => setIframeLoaded(true)}
  data-testid="apple-pay-payment-form"
  title="Apple Pay Payment Form"
  style={{
    width: '500px',
    height: '500px',
    border: 'none',
    visibility: iframeLoaded ? 'visible' : 'hidden',
    position: 'absolute',
    clipPath: 'inset(121px130px 30px70px 316px322px 0px70px)', // important property to cut the iframe
    top: '128px',
    transform: 'scale(1.00)', // important property to increase button size
  }}
  src={paymentLink}
/>

...