以编程方式更改 android 中的账单地址?

Change billing address in android pay programatically?

我在我的应用程序中使用 android 付款,我想在我的应用程序付款时向用户发送默认地址,我该怎么做?

来自Android Pay best practices

Android Pay intends to provide you with all of the information you need to complete a transaction, including shipping addresses and other user information stored by Google. An optimal flow would lead from clicking the Android Pay button to the purchase confirmation page to the receipt page riding on the rails of your guest checkout flow. This flow should bypass pages where entering information is redundant. To optimize user experience in this flow, we recommend not asking for user account creation or passwords.

You can use the class gms.identity.intents.Address and the requestUserAddress call to prompt the user to select an address to share with your Android Pay app. This can be useful to facilitate order-ahead use cases, to locate a user's nearest physical store, or to determine whether you can serve the user's chosen address or area.

仅供参考: 如果您实施 android 支付,那么请不要编辑更多送货​​地址,但 运行 时间您可以在 Android 支付添加您的地址并从 android 支付地址检索该地址列表。