[w3c/payment-request] PaymentRequest api on Safari/IOS v15.6.4 (Issue #1006)

Hello, 
I tried  to test paymentRequest api on Safari/IOS v15.6.4 , the code is as follow :

`function testPrr() {
            function buildSupportedPaymentMethodData() {
                // Example supported payment methods:
                return [{ supportedMethods: "https://itest/payment-manifest.json" }];
            }
            function buildShoppingCartDetails() {
                // Hardcoded for demo purposes:
                return {
                    id: "order-123",
                    displayItems: [
                        {
                            label: "Example item",
                            amount: { currency: "USD", value: "1.00" },
                        },
                    ],
                    total: {
                        label: "Total",
                        amount: { currency: "USD", value: "1.00" },
                    },
                };
            }
            const request = new PaymentRequest(
                buildSupportedPaymentMethodData(),
                buildShoppingCartDetails()
            );
            request.show().then((paymentResponse) => {
                // Here we would process the payment. For this demo, simulate immediate success:
                paymentResponse.complete("success").then(() => {
                    alert('success')
                })
            }).catch(function(e){
               alert(e)
            });
        }`


I get an error on show method, saying that the operation is not supported !
@rsolomakhin 
@ianbjacobs 
@stephenmcgruer 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/issues/1006
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/payment-request/issues/1006@github.com>

Received on Wednesday, 24 May 2023 13:38:29 UTC