1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System;
- using ET;
- using UnityEngine;
- using GFGGame.Launcher;
- namespace GFGGame
- {
- public class AliManagerr : SingletonBase<AliManagerr>
- {
- //支付宝支付
- public void Pay(string orderStr)
- {
- AliPayManagerInit.Instance.ShowSwitchPayment(orderStr);
- }
- //微信支付
- public void PayVx(string appId, string mchId, string prepayId, string packageValue,
- string nonceStr, string timestamp, string sign, string callBackObjectName = "AliPayGameObject",
- string callBackFuncName = "VxPayReceive")
- {
- AliPayManagerInit.Instance.VxShowSwitchPayment(appId, mchId, prepayId, packageValue,
- nonceStr, timestamp, sign, callBackObjectName, callBackFuncName);
- }
- }
- /// <summary>
- /// SDK回调
- /// </summary>
- public class AliPaySDKListener : IAliSDKListener
- {
- public void AliPayReceiveAb(string message)
- {
- Debug.Log("Game.HotUpdate AliPayReceiveAb: " + message);
- }
- public void VxPayReceiveAb(string message)
- {
- Debug.Log("Game.HotUpdate VxPayReceiveAb: " + message);
- }
- }
- }
|