You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the examples in the hooks directory, the PaymentRequestButtonElement looks something like this:
{paymentRequest && (
<PaymentRequestButtonElement
onClick={(event) => {
if (paymentMethod) {
event.preventDefault();
setErrorMessage(
'You can only use the PaymentRequest button once. Refresh the page to start over.'
);
}
}}
options={{
...ELEMENT_OPTIONS,
paymentRequest,
}}
/>
)}
After getting a TS compile error and bouncing through the types a bit, it appears the options attribute no longer excepts a paymentRequest. I'll paste a flow of definitions here:
Per the examples in the hooks directory, the PaymentRequestButtonElement looks something like this:
After getting a TS compile error and bouncing through the types a bit, it appears the options attribute no longer excepts a paymentRequest. I'll paste a flow of definitions here:
...
The text was updated successfully, but these errors were encountered: