Skip to content

Update Iframe property in embedded checkout to allow apple pay #2189

@hardikbhut333

Description

@hardikbhut333

Is your feature request related to a problem? Please describe.
Apple Safari has given 17 release and now it supports apple pay. But in embedded checkout we need to pass allow="payment" as attribute in iframe. Right now the attribute is iframe.allowPaymentRequest = true. allowPaymentRequest attribute is deprecated and now It's allow="payment"

Describe the solution you'd like
Solution is instead of using iframe.allowPaymentRequest = true use allow="payment" in following file checkout-sdk-js/packages/core/src/embedded-checkout/resizable-iframe-creator.ts (line no. 27)

Additional context
Once the above change will be done, it will start loading apple pay using embedded checkout on Safari browser. Look at the attached screenshot.

embedded-checkout-code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions