Skip to content

Handling in-app shipping changes #1042

@dtjones404

Description

@dtjones404

Hi team, we’re looking for guidance on handling in-app shipping changes using the PaymentRequest API. It looks like the existing shippingaddresschange and shippingoptionchange events are both deprecated, so we're unsure if it's recommended to use them in our implementation. In our testing we found a way to handle bidirectional shipping callbacks using paymentmethodchange, but we're concerned about future breaking changes with that approach, since it doesn't seem like we're using the API as intended- we're essentially using changePaymentMethod() as a means of exchanging arbitrary data between the payment app and our SDK on the merchant page. For context, here's a repo with a minimal reproduction of the strategy we're considering.

A couple of questions:

  1. What is the status of the shippingaddresschange and shippingoptionchange deprecations? Are there plans to remove them from future versions of the spec?
  2. Currently paymentmethodchange allows for the exchange of arbitrary data between the payment app and the merchant page. Will this continue to be true in the future?

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