Integrate Paytring Quick Checkout with your store.
theme.liquid
theme.liquid
file, ideally before the closing </body>
tag:
Parameter | Values | Purpose |
---|---|---|
env | prod | uat | local | Choose your environment |
iframe | true | false | Whether to render checkout in an iframe |
style | phone | Apply preset button styling whether it’s mobile view or not |
Parameter | Purpose |
---|---|
Admin API access token | Use your access token to request data from the Admin API |
API key | Public key for your Shopify app |
API secret key | Private secret used for app authentication |
Storefront API access token | Use your access token to request data from Storefront API |
cart.liquid
, cart-template.liquid
, or sections like main-cart-footer.liquid
cart-drawer.liquid
, sections/cart-drawer.liquid
, snippets/cart-drawer-footer.liquid
checkout
btn--checkout
name="checkout"
<a>
tag → replace with <button>
:<button>
:<button>
type
to "button"
id="magic-checkout-button"
onclick="TRIGGER_QUICK_CHECKOUT()"
if your id is not triggering checkoutcart.liquid
or similar)cart-drawer.liquid
or similar)<a>
with <button>
(or adjust <button>
)id="magic-checkout-button"
and type="button"
onclick="TRIGGER_QUICK_CHECKOUT()"
if neededproduct.liquid
, sections/main-product.liquid
, or similar.
Option | Example | Notes |
---|---|---|
backgroundColor | "#003c23" (hex code) | Button background color |
borderRadius | "1rem" | CSS border radius property |
padding | "0px 0px 0px 0px" | CSS padding; usually in px |
fontSize | "16px" | Button font size |
width | "100%" | Width in percentage |
gap | "8px" | Space between internal elements, if any |
<div id="quick-checkout-div"></div>
theme.liquid
:
theme.liquid
, add:
theme.liquid
):
clearInterval
).