GoogleProductDetails
com.xd.intl.payment.entities.GoogleProductDetails
Public Methods
方法名 | 描述 |
---|---|
getDescription() | 获取商品定义的描述。 |
getName() | 获取商品名称。 |
getProductId() | 获取商品在 Google Play Console 中定义的商品 ID。 |
getProductType() | 获取商品的类型。当前 SDK 仅支持 "inapp" 类型 |
getTitle() | 获取商品的标题。 |
getGoogleOneTimePurchaseOfferDetails() | 获取 SDK 包装的 Google 售卖商品详情。 |
getDescription
public String getDescription()
参见:ProductDetails#getDescription()
getName
public String getName()
getProductId
public String getProductId()
参见:ProductDetails#getProductId()。
getProductType
public String getProductType()
提示
请注意,当前 SDK 仅支持 "inapp" 类型。订阅类型: "subs" 暂不支持。
参见:ProductDetails#getProductType()。
getTitle
public String getTitle()
getGoogleOneTimePurchaseOfferDetails
public GoogleOneTimePurchaseOfferDetails getGoogleOneTimePurchaseOfferDetails()
参见 ProductDetails#getOneTimePurchaseOfferDetails()。
GoogleProductDetails.GoogleOneTimePurchaseOfferDetails
Public Methods
方法名 | 描述 |
---|---|
getFormattedPrice() | 返回格式化的付款价格,包括其货币符号。对于免税国家,价格不含税。 |
getPriceAmountMicros() | 返回以微单位表示的支付价格,其中 1,000,000 微单位等于一个货币单位。例如,如果价格为“€7.99”,则 price_amount_micros 为“7990000”。该值代表特定货币的本地化四舍五入价格。 |
getPriceCurrencyCode() | 返回价格的 ISO 4217 货币代码。例如,如果以英镑指定价格,则货币代码为“GBP”。 |
getFormattedPrice
public String getFormattedPrice()
参见:ProductDetails.OneTimePurchaseOfferDetails#getFormattedPrice()。
getPriceAmountMicros
public long getPriceAmountMicros()
参见:ProductDetails.OneTimePurchaseOfferDetails#getPriceAmountMicros()。
getPriceCurrencyCode
public String getPriceCurrencyCode()
参见:ProductDetails.OneTimePurchaseOfferDetails#getPriceCurrencyCode()。