Exemplo n.º 1
0
        public void PayExample()
        {
            var paymentInfo = ToNSMutableDictionary(PaymentInfo.ExamplePayment());

            MoMoPayment.ShareInstant.InitPaymentInformation(info: paymentInfo, bundleId: "com.momo.appv2.ios",
                                                            type_environment: MomoEnvirontment.Development);

            MoMoPayment.ShareInstant.RequestToken();
        }
Exemplo n.º 2
0
        public void PayExample()
        {
            //var paymentInfo = ToNSMutableDictionary(PaymentInfo.ExamplePayment());
            //MoMoPayment.ShareInstant.InitPaymentInformation(info: paymentInfo, bundleId: "com.momo.appv2.ios",
            //                                                type_environment: MomoEnvirontment.Development);

            //MoMoPayment.ShareInstant.RequestToken();

            AppMoMoLib.Instance.SetAction(AppMoMoLib.ACTION.Payment);
            AppMoMoLib.Instance.SetActionType(AppMoMoLib.ACTION_TYPE.GetToken);

            var paymentInfo = ToNSMutableDictionary(PaymentInfo.ExamplePayment());

            AppMoMoLib.Instance.RequestMoMoCallBack(CrossCurrentActivity.Current.Activity, paymentInfo);
        }