uCommerce includes full API reference documentation and lots of helpful articles to help you build your e-commerce site as effortlessly as possible.
Gets a collection of
var paymentMethods = UCommerce.Api.TransactionLibrary.GetPaymentMethods(); var danishPaymentMethods = UCommerce.Api.TransactionLibrary.GetPaymentMethods(denmark);
|country||Country||Specifying which country defined in uCommerce, to get the payment methods from|
Creates a new payment of the specified amount, by requesting the specified
UCommerce.Api.TransactionLibrary.CreatePayment(newPaymentMethodId, requestPayment: false); UCommerce.Api.TransactionLibrary.ExecuteBasketPipeline(); HttpContext.Current.Response.Redirect("Preview.aspx");
|paymentMethodId||int||The id of the payment method to use for the payment.|
|amount||decimal||The payment amount. This is the current basket order total by default.|
|requestPayment||bool||If the payment should be requested immediately. Set to
|overwriteExisting||bool||If the existing payment on the current customers basket should be overwritten. Set to
Requests the payments, and potentially redirects customers to the payment gateway.
Requests a single payment, and potentially redirects customers to the payment gateway.
|paymentId||int||The id of the payment to request|
Basket to a
PurchaseOrder, and executes the checkout pipeline for the current basket.
This method is generally only used if you don't use a payment provider, since the payment providers usually handles this step automatically.