Esempio n. 1
0
        private void onClickConfirmDeletePaymentMethod(XsollaSavedPaymentMethod pMethod)
        {
            Logger.Log("Delete payment method");
            Dictionary <string, object> reqParams = new Dictionary <string, object>();

            reqParams.Add("id", pMethod.GetKey());
            reqParams.Add("type", pMethod.GetMethodType());

            XsollaPaystationController controller = gameObject.GetComponentInParent <XsollaPaystationController>();

            controller.DeleteSavedPaymentMethod(reqParams);
        }
Esempio n. 2
0
        private void onClickConfirmReplacedAnotherMethod(XsollaSavedPaymentMethod pMethod)
        {
            Logger.Log("Raplaced existing method");
            Dictionary <string, object> reqParams = new Dictionary <string, object>();

            reqParams.Add("id_payment_account", pMethod.GetKey());
            reqParams.Add("replace_payment_account", 1);
            reqParams.Add("type_payment_account", pMethod.GetMethodType());

            XsollaPaystationController payController = GetComponentInParent <XsollaPaystationController> ();

            payController.ChooseItem(reqParams);
        }
Esempio n. 3
0
        private void onClickConfirmReplaced(XsollaSavedPaymentMethod pMethod)
        {
            Logger.Log("Raplaced existing method");
            Dictionary <string, object> reqParams = new Dictionary <string, object>();

            reqParams.Add("id_payment_account", pMethod.GetKey());

            reqParams.Add("saved_method_id", mSelectedMethod.GetKey());
            reqParams.Add("pid", mSelectedMethod.GetPid());
            reqParams.Add("paymentWithSavedMethod", 1);
            reqParams.Add("paymentSid", pMethod.GetFormSid());
            reqParams.Add("type_payment_account", pMethod.GetMethodType());

            Dictionary <string, object> replacedParam = new Dictionary <string, object>();

            replacedParam.Add("replace_payment_account", 1);

            XsollaPaystationController payController = GetComponentInParent <XsollaPaystationController> ();

            payController.FillPurchase(ActivePurchase.Part.PAYMENT_MANAGER_REPLACED, replacedParam);
            payController.ChoosePaymentMethod(reqParams);
        }