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

            debug_print(e.ToString());

            Debug.Assert(task != null, "ScTask should not be NULL");
            if (task != null)
            {
                string purchResponseJsonStr = JsonConvert.SerializeObject(e.ProcessStatus, Formatting.Indented);

                CJsonResult jResult = new CJsonResult {
                    successB     = true,
                    resultI      = Convert.ToInt32(CheckoutState.Purchased),
                    responseJson = purchResponseJsonStr
                };

                task.set_result(CreateJsonResult(jResult));
            }
        }
 private void PaddleCheckoutForm_TransactionCompleteEvent(object sender, TransactionCompleteEventArgs e)
 {
     textBoxErrors.Text += e.ToString();
 }