Start PaymentDetailsUpdateService with new intent action

39 views
Skip to first unread message

Liquan (Max) Gu

unread,
May 10, 2021, 10:49:26 AM5/10/21
to payment...@chromium.org

If you are not interested in providing shipping and contact informationĀ from Android payment apps, you can stop reading now.


Hi developers,


Starting with Android Chrome version 92 (scheduled to ship to stable on 2021/07/20), Chrome adds an intent-filter action named org.chromium.intent.action.UPDATE_PAYMENT_DETAILS which allows Android payment apps to invoke the service of updating payment details. Using this action allows communicating with other browsers (e.g., WebLayer) that do not have the org.chromium.components.payments.PaymentDetailsUpdateService class in their package. The package name is still required and should match the package name of the browser that invoked the payment app.


It is recommended that Android payment apps that update payment details should switch from using the org.chromium.components.payments.PaymentDetailsUpdateService class to using the org.chromium.intent.action.UPDATE_PAYMENT_DETAILS action by Chrome version 94, which is scheduled to ship to stable on 2021/09/21. A recommended migration strategy for a payment app is:

  • Use intent.resolveActivity() with org.chromium.intent.action.UPDATE_PAYMENT_DETAILS action to tell whether the action is supported. If yes, use the action; otherwise, fall back to the class name approach (example).

  • By Chrome 94, when most Chrome users are reasonably expected to be updated to at least version 92, remove the fallback approach. Chrome 94 is expected to ship to stable on 2021/09/21. See more scheduling information at https://chromiumdash.appspot.com/schedule.


Thanks,
Max

Liquan (Max) Gu

unread,
May 24, 2021, 10:05:02 PM5/24/21
to payment...@chromium.org
Android payment apps who authorize incoming browsers may also want to allowlist Google Quick Search Box (a WebLayer embedder) which starts to support Android payment apps from version 12.19.9.23. See the example app for more details - https://github.com/GoogleChromeLabs/android-web-payment/pull/13/files.

Reply all
Reply to author
Forward
0 new messages