void Awake() { Debug.Log("[PaySDK]PaySDK ===>>> Awake"); #if UNITY_IOS paysdkImpl = new iOSPaySDKImpl(gameObject); #endif }
static public void payWithTicketId(string ticketId, PaySDKChannel channel, PaySDKHandler handler) { #if UNITY_ANDROID if (null == paysdkImpl) { paysdkImpl = new AndroidPaySDKImpl(); } paysdkImpl.payWithTicketId(ticketId, channel, handler); #elif UNITY_IOS PaySDK.resultHandler = handler; paysdkImpl.payWithTicketId(ticketId, channel); #endif }
static public void payWithOrder(PaySDKOrder order, PaySDKChannel channel, PaySDKHandler handler) { #if UNITY_ANDROID if (null == paysdkImpl) { paysdkImpl = new AndroidPaySDKImpl(); } paysdkImpl.payWithOrder(order, channel, handler); #elif UNITY_IOS PaySDK.resultHandler = handler; paysdkImpl.payWithOrder(order, channel); #endif }