Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     ap = new ApiPayment();
     ap.SetStatusApi(Paymentwall_Base.API_GOODS);
     ap.Attach(goodApi);
     ap.Attach(vcApi);
     ap.Notify();
 }
        public InsertOrderWithPayment()
            : base("INSERT_ORDERWITHPAYMENT")
        {
            Order   = new ApiOrder();
            Payment = new ApiPayment();

            Params.Parameters.Add(Order);
            Params.Parameters.Add(Payment);
        }
Esempio n. 3
0
 public void Run(ApiPayment apiSubject)
 {
     if (status == apiSubject.GetStatusApi())
     {
         this.gameObject.SetActive(true);
     }
     else
     {
         this.gameObject.SetActive(false);
     }
 }
Esempio n. 4
0
        public void Can_Add_Extra_Data_To_Payment()
        {
            // Arrange
            var payment = new ApiPayment {
                PaymentProductId = 123, LanguageCode = "da", MerchantReference = "JustMyLuck"
            };

            // Act
            payment.AddExtraData("Ucommerce", "ECOM");
            var text = ConvertApiDataPartToString(payment);

            // Assert
            Assert.IsTrue(text.Contains("<ECOM>Ucommerce</ECOM>"));
        }
 public SetPayment()
     : base("SET_PAYMENT")
 {
     Payment = new ApiPayment();
     Params.Parameters.Add(Payment);
 }
Esempio n. 6
0
 public DoRefund()
     : base("DO_REFUND")
 {
     Payment = new ApiPayment();
     Params.Parameters.Add(Payment);
 }
Esempio n. 7
0
 public CancelPayment() : base("CANCEL_PAYMENT")
 {
     Payment = new ApiPayment();
     Params.Parameters.Add(Payment);
 }