예제 #1
0
        public void CreateOrder(GatewayType gatewayType)
        {
            PaymentSetting paymentSetting = new PaymentSetting(gatewayType);

            paymentSetting.Merchant.AppId         = "appid000000000000000";
            paymentSetting.Merchant.Email         = "*****@*****.**";
            paymentSetting.Merchant.Partner       = "000000000000000";
            paymentSetting.Merchant.Key           = "000000000000000000000000000000000000000000";
            paymentSetting.Merchant.PrivateKeyPem = "yourrsa_private_key.pem";
            paymentSetting.Merchant.PublicKeyPem  = "yourrsa_public_key.pem";
            paymentSetting.Merchant.NotifyUrl     = new Uri("http://yourwebsite.com/Notify.aspx");
            paymentSetting.Merchant.ReturnUrl     = new Uri("http://yourwebsite.com/Return.aspx");

            paymentSetting.Order.OrderAmount = 0.01;
            paymentSetting.Order.OrderNo     = "yourorderno";
            paymentSetting.Order.Subject     = "WapPayment";
            paymentSetting.WapPayment();
        }