Beispiel #1
0
 public UpdateCheckoutSessionRequest()
 {
     WebCheckoutDetails = new WebCheckoutDetails();
     PaymentDetails     = new PaymentDetails();
     MerchantMetadata   = new MerchantMetadata();
     ProviderMetadata   = new ProviderMetadata();
 }
Beispiel #2
0
 public CheckoutSessionResponse()
 {
     WebCheckoutDetails = new WebCheckoutDetails();
     PaymentDetails     = new PaymentDetails();
     MerchantMetadata   = new MerchantMetadata();
     Buyer              = new Buyer();
     ProviderMetadata   = new ProviderMetadata();
     ShippingAddress    = new Address();
     PaymentPreferences = new List <PaymentPreferences>();
     Constraints        = new List <Constraint>();
 }
Beispiel #3
0
        /// <summary>
        /// Initializes a new instance of the CreateCheckoutSessionRequest class.
        /// </summary>
        /// <param name="checkoutReviewReturnUrl">Checkout review URL provided by the merchant. Amazon Pay will redirect to this URL after the buyer selects their preferred payment instrument and shipping address.</param>
        /// <param name="storeId">Store ID as defined in Seller Central.</param>
        public CreateCheckoutSessionRequest(string checkoutReviewReturnUrl, string storeId)
        {
            WebCheckoutDetails     = new WebCheckoutDetails();
            DeliverySpecifications = new DeliverySpecifications();
            PaymentDetails         = new PaymentDetails();
            MerchantMetadata       = new MerchantMetadata();
            ProviderMetadata       = new ProviderMetadata();

            WebCheckoutDetails.CheckoutReviewReturnUrl = checkoutReviewReturnUrl;
            StoreId = storeId;
        }