PayNow

Routes

Webstore Routes

This section outlines all HTTP routes supported by the webstore, including the associated template, method, and query parameters for each.


Home

Route: GET /
Template: index.html

Displays the main homepage of the webstore.


Products

List Products

Route: GET /products
Template: category.html

Query ParameterTypeDescription
tagsstring[]Optional. Comma-separated tag slugs to filter products

View Product

Route: GET /products/{product.slug}
Template: product.html

Displays product detail page based on the provided slug.


Checkout Product

Route: POST /products/{product.slug}/checkout

Query ParameterTypeDescription
cartbooleanOptional. Adds to cart if true
subscriptionbooleanOptional. Adds as a subscription
trialbooleanOptional. Adds as a trial. Subscription must also be true.
quantityintOptional. Product quantity (default: 1)
gift_tostringOptional. Recipient’s platform ID
gift_platformstringOptional. Gifting platform (default: "steam")
gameserver_idstringOptional. ID of selected gameserver

Cart

View Cart

Route: GET /cart
Template: cart.html


Add to Cart

Route: POST /cart/add/{product.slug}

Query ParameterTypeDescription
quantityintegerOptional. Defaults to 1
gameserver_idstringOptional. Selected gameserver ID
custom_variablesobjectOptional. Object containing custom key-value pairs for the cart line.
subscriptionbooleanOptional. Adds as a subscription.
trialbooleanOptional. Adds as a trial. Subscription must also be true.

Set Cart Line

Route: POST /cart/set/{product.slug}

Query ParameterTypeDescription
quantityintegerOptional. New quantity (default: 1)
gameserver_idstringOptional. Selected gameserver ID
custom_variablesobjectOptional. Object containing custom key-value pairs for the cart line.
subscriptionbooleanOptional. Edits as a subscription.
trialbooleanOptional. Edits as a trial. Subscription must also be true.

Note: This route is also used to remove from cart by setting quantity to 0.


Empty Cart

Route: POST /cart/empty

Clears all items from the customer's cart.


Checkout Cart

Route: POST /cart/checkout

Query ParameterTypeDescription
return_urlstringOptional. Redirect URL after checkout

Authentication

Sign In

Route: POST /auth/sign-in

Query ParameterTypeDescription
return_urlstringOptional. URL to redirect after login

Sign Out

Route: POST /auth/sign-out

Signs out the currently logged-in user.


Subscriptions

View Subscriptions

Route: GET /subscriptions
Template: subscriptions.html


Cancel Subscription

Route: POST /subscriptions/{subscription.id}/cancel

Cancels the specified subscription.


Checkout Complete

Route: GET /complete
Template: complete.html

Displays a confirmation message after a successful transaction.


PageRoute
Terms of ServiceGET /legal/terms-of-service
User AgreementGET /legal/user-agreement
Privacy PolicyGET /legal/privacy