Example #1
0
 public void onPaymentFailure(string billingId)
 {
     if (OnPaymentEvent != null && OnPaymentEvent.GetInvocationList().Length > 0)
     {
         OnPaymentEvent(RiseSdk.PaymentResult.Failed, int.Parse(billingId));
     }
 }
Example #2
0
 public void onPaymentSystemError(string data)
 {
     if (OnPaymentEvent != null && OnPaymentEvent.GetInvocationList().Length > 0)
     {
         OnPaymentEvent(RiseSdk.PaymentResult.PaymentSystemError, -1);
     }
 }
Example #3
0
 /// <summary>
 /// 支付取消结果回调方法,SDK自动调用。
 /// </summary>
 /// <param name="billId">计费点Id</param>
 public void onPaymentCanceled(string billId)
 {
     if (OnPaymentEvent != null && OnPaymentEvent.GetInvocationList().Length > 0)
     {
         int id = int.Parse(billId);
         OnPaymentEvent(RiseSdk.PaymentResult.Cancel, id);
     }
 }
Example #4
0
    /// <summary>
    /// 支付取消结果回调方法,SDK自动调用。
    /// </summary>
    /// <param name="billId">计费点Id</param>
    public void onPaymentCanceled(string billId)
    {
        int id = int.Parse(billId);

        if (OnPaymentEvent != null && OnPaymentEvent.GetInvocationList().Length > 0)
        {
            OnPaymentEvent(RiseSdk.PAYMENT_RESULT_CANCEL, id);
        }
    }
Example #5
0
    /// <summary>
    /// 支付成功结果回调方法,SDK自动调用。
    /// </summary>
    /// <param name="billId">计费点Id</param>
    public void onPaymentSuccess(string billId)
    {
        int id = int.Parse(billId);

        if (OnPaymentEvent != null && OnPaymentEvent.GetInvocationList().Length > 0)
        {
            OnPaymentEvent(RiseSdk.PAYMENT_RESULT_SUCCESS, id);
        }
    }