Post

Replies

Boosts

Views

Activity

Reply to PaymentRequest TypeError
For completeness/posterity, also added to StackOverflow: The annoyingly tiny answer was that the first argument to the PaymentRequest constructor is supposed to be an array. const request = new PaymentRequest([ applePayMethod ], paymentDetails); (Or, make the variable an array from the start. The two examples I'd seen used different approaches, I missed the array brackets.)
Jul ’24