Пример #1
0
 void Awake()
 {
     Debug.Log("[PaySDK]PaySDK  ===>>>  Awake");
                 #if UNITY_IOS
     paysdkImpl = new iOSPaySDKImpl(gameObject);
                 #endif
 }
Пример #2
0
 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
 }
Пример #3
0
 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
 }