Exemple #1
0
        private void Paddle_CheckoutErrorEvent(object sender, TransactionErrorEventArgs e)
        {
            ScTask task = ScTask.get();

            debug_print(e.ToString());

            //	task may be NULL at this point
            //	if the checkout already completed
            if (task != null)
            {
                CJsonResult jResult = new CJsonResult {
                    resultI = Convert.ToInt32(CheckoutState.Failed),
                    // ?? errCodeI	= PADErrorLicenseActivationFailed,
                    errStr = e.Error
                };

                task.set_result(CreateJsonResult(jResult));
            }
        }