示例#1
0
        public void TestHostedPageCheckoutExisting()
        {
            EntityResult result = HostedPage.CheckoutExisting()
                                  .SubscriptionId("HoR7OsYNy5YBOlyn")
                                  .SubscriptionPlanId("enterprise_half_yearly")
                                  .AddonId(1, "on_call_support").Request();

            HostedPage hostedPage = result.HostedPage;

            Assert.NotNull(hostedPage);
        }
示例#2
0
        public void TestHostedPageCheckoutNew()
        {
            EntityResult result = HostedPage.CheckoutNew()
                                  .CustomerEmail("*****@*****.**")
                                  .CustomerFirstName("John")
                                  .CustomerLastName("Wayne")
                                  .SubscriptionPlanId("enterprise_half_yearly")
                                  .AddonId(1, "on_call_support").Request();

            HostedPage hostedPage = result.HostedPage;

            Assert.NotNull(hostedPage);
        }
示例#3
0
        public void TestRetrieveHostedPage()
        {
            EntityResult result = HostedPage.CheckoutNew()
                                  .CustomerEmail("*****@*****.**")
                                  .CustomerFirstName("John")
                                  .CustomerLastName("Wayne")
                                  .SubscriptionPlanId("enterprise_half_yearly")
                                  .AddonId(1, "on_call_support").Request();

            HostedPage hostedPage1 = result.HostedPage;

            Assert.NotNull(hostedPage1);

            result = HostedPage.Retrieve(hostedPage1.Id).Request();

            HostedPage hostedPage2 = result.HostedPage;

            Assert.NotNull(hostedPage2);

            Assert.AreEqual(hostedPage2.Url, hostedPage2.Url);
        }