fix:1、接入合作方的sdk。2、支付逻辑接入sdk中的接口
This commit is contained in:
@@ -6,7 +6,7 @@ namespace AppsFlyerSDK
|
||||
{
|
||||
public class AppsFlyer : MonoBehaviour
|
||||
{
|
||||
public static readonly string kAppsFlyerPluginVersion = "6.17.1";
|
||||
public static readonly string kAppsFlyerPluginVersion = "6.17.91";
|
||||
public static string CallBackObjectName = null;
|
||||
private static EventHandler onRequestResponse;
|
||||
private static EventHandler onInAppResponse;
|
||||
@@ -768,6 +768,11 @@ namespace AppsFlyerSDK
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// [Deprecated] Validates an in-app purchase on iOS.
|
||||
/// Use the V2 overload with AFSDKPurchaseDetailsIOS instead.
|
||||
/// </summary>
|
||||
[System.Obsolete("This method is deprecated. Use validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject) instead.")]
|
||||
public static void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
||||
{
|
||||
if (instance != null && instance is IAppsFlyerIOSBridge)
|
||||
@@ -777,16 +782,23 @@ namespace AppsFlyerSDK
|
||||
}
|
||||
}
|
||||
|
||||
// V2
|
||||
public static void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> extraEventValues, MonoBehaviour gameObject)
|
||||
/// <summary>
|
||||
/// Validates an in-app purchase on iOS using the V2 API.
|
||||
/// </summary>
|
||||
public static void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject)
|
||||
{
|
||||
if (instance != null && instance is IAppsFlyerIOSBridge)
|
||||
{
|
||||
IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance;
|
||||
appsFlyeriOSInstance.validateAndSendInAppPurchase(details, extraEventValues, gameObject);
|
||||
appsFlyeriOSInstance.validateAndSendInAppPurchase(details, purchaseAdditionalDetails, gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// [Deprecated] Validates an in-app purchase on Android.
|
||||
/// Use the V2 overload with AFPurchaseDetailsAndroid instead.
|
||||
/// </summary>
|
||||
[System.Obsolete("This method is deprecated. Use validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject) instead.")]
|
||||
public static void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
||||
{
|
||||
if (instance != null && instance is IAppsFlyerAndroidBridge)
|
||||
@@ -796,13 +808,15 @@ namespace AppsFlyerSDK
|
||||
}
|
||||
}
|
||||
|
||||
// V2
|
||||
public static void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject)
|
||||
/// <summary>
|
||||
/// Validates an in-app purchase on Android using the V2 API.
|
||||
/// </summary>
|
||||
public static void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary<string, string> purchaseAdditionalDetails, MonoBehaviour gameObject)
|
||||
{
|
||||
if (instance != null && instance is IAppsFlyerAndroidBridge)
|
||||
{
|
||||
IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance;
|
||||
appsFlyerAndroidInstance.validateAndSendInAppPurchase(details, additionalParameters, gameObject);
|
||||
appsFlyerAndroidInstance.validateAndSendInAppPurchase(details, purchaseAdditionalDetails, gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user