【问题标题】:How to change the displayed price format on ApplePayJS?如何更改 ApplePayJS 上显示的价格格式?
【发布时间】:2021-11-08 19:44:25
【问题描述】:

我正在使用 ApplePayJS 并想更改价格格式(例如,1,200.00 € 而不是 1 200 €)。 我尝试编辑completeShippingContactSelection 方法的参数,尝试替换newTotal.amount 值,因为它显然接受了一个字符串,但是用任何其他非整数值替换该值会在尝试支付时引发(匿名)错误.

有没有办法使用 ApplePayJS 自定义价格格式?

【问题讨论】:

    标签: javascript applepay applepayjs


    【解决方案1】:

    显然无法为用户自定义价格格式,价格格式由设备本身在 iOS 或 macOS 设备设置中定义的语言和区域设置定义:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-24
      • 2015-09-13
      • 2020-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多