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); }
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); }