getSkuPayment(data: GetSkuPaymentParams)
Requires:
@tuya-miniapp/cloud-api≥1.6.1
Description
Query payment information and available payment channels for a specified SKU, returning the payment channel and payment type to be used with getPrepay.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Request parameters |
Return Value
Type: Promise<GetSkuPaymentResult>
Payment information, including the list of available payment channel configurations
Referenced Types
interface
GetSkuPaymentResultResult of querying SKU payment information| Property | Type | Description |
|---|---|---|
| List of available payment channel configurations |
enum
VasPaymentScope| Value | Actual Value | Description |
|---|---|---|
VasPaymentScope.ALL | 0 | All |
VasPaymentScope.ONLY_IAP | 1 | IAP only |
VasPaymentScope.ONLY_NON_IAP | 2 | Non-IAP only |
VasPaymentScope.AUTO_IAP | 99 | Auto-select whether to use IAP |
enum
VasPaymentOS| Value | Actual Value | Description |
|---|---|---|
VasPaymentOS.ANDROID | 1 | Android |
VasPaymentOS.IOS | 2 | iOS |
enum
VasOptionType| Value | Actual Value | Description |
|---|---|---|
VasOptionType.NORMAL | 0 | Standard payment |
VasOptionType.SUBSCRIPTION | 2 | Subscription payment |
Valid Values
VasPaymentScope
| Value | Description | Since |
|---|---|---|
0 | All | - |
1 | IAP only | - |
2 | Non-IAP only | - |
99 | Auto-select whether to use IAP | - |
VasPaymentOS
| Value | Description | Since |
|---|---|---|
1 | Android | - |
2 | iOS | - |
VasOptionType
| Value | Description | Since |
|---|---|---|
0 | Standard payment | - |
2 | Subscription payment | - |