Skip to main content

Shopify App Setup Guide

This guide walks you through creating a Shopify app, installing VesuvioPay, and configuring your theme and checkout settings to enable VesuvioPay on your Shopify store.

1. Create App​

To create the Vesuvio app, navigate to your Shopify Partners account. In the top-right corner, click on your account name and switch to the Shopify Dev Dashboard.

Navigate to Dev Dashboard

On the Dev Dashboard, click Create app.

Click Create App

Enter your app name (for example, "Vesuvio Pay") and click the Create button.

Name your app

After creating the app, go to Settings and copy both the Client ID and Client Secret. Paste these into your VesuvioPay Dashboard.

Copy credentials

2. Get Shopify CLI Token​

warning

You can only copy a CLI token immediately after creating it. If you refresh the page, the copy option will no longer be available.

This token is required to deploy VesuvioPay extensions to the app you just created. The CLI token must be from the same account as the newly created Vesuvio app.

Go to your Shopify Partners → Settings.

Partners Settings

Scroll to the bottom of the page and click the Manage CLI tokens button.

Manage CLI Tokens

Click Generate token.

Generate Token

In the confirmation modal, click Generate token.

Confirm Generate

Click Copy token and paste it into the VesuvioPay Dashboard.

Copy Token

3. Install the App​

To install the VesuvioPay Shopify app, navigate to https://store.vesuviopay.com/, enter your .myshopify.com store URL, and click the Log in button.

App Login

4. Configure App Settings​

After installing the app, you will be redirected to Shopify Admin on the app's home page. Fill in the following fields:

  • Vesuvio API Secret
  • Vesuvio Shop ID

You can find your Shop ID and API Secret on the VesuvioPay Dashboard. This information is required to synchronize your Shopify products with VesuvioPay and to synchronize orders between both platforms. After clicking Save, VesuvioPay will automatically begin synchronizing your Shopify products.

App Settings Form

5. Theme Settings​

Configure your Shopify theme to enable VesuvioPay on your website. Follow these steps in order:

Steps 1–2: Navigate to Theme Customizer​

  1. Navigate to Sales Channels → Online Store → Themes.
  2. On your published theme, click the Customize button.

Navigate to Themes

Steps 3–4: Enable App Embeds​

  1. In the Shopify theme customizer, click the App embeds icon on the left sidebar.
  2. Search for VesuvioPay head and VesuvioPay floating cart widgets, then enable them.

Enable App Embeds

Step 5: Configure Head Widget​

  1. Select the VesuvioPay head widget and enter the following (both values are available on the VesuvioPay Dashboard):
    • VesuvioPay public key
    • VesuvioPay store ID

Head Widget Settings

Step 6: Configure Head Widget Settings​

  1. Complete the VesuvioPay head widget configuration.

Head Widget Configuration

Step 7: Configure Floating Cart (Optional)​

  1. Select VesuvioPay floating cart and adjust the cart position on the page if needed.

Floating Cart Settings

Step 8: Save Changes​

  1. Save your changes.

Save Changes

Save Confirmation

Step 9: Navigate to Product Page​

  1. In the theme customizer, navigate to a product page (select any product).

Product Page

Step 10: Add Section​

  1. On the left sidebar in the Template section, click Add section.

Add Section

Step 11: Add VesuvioPay Add to Cart​

  1. In the Add section popup, select Apps and click on VesuvioPay add to cart. This adds the Vesuvio add-to-cart button to the product page.

Select Apps

Add to Cart Button

Step 12: Position the Button​

important

Moving the button under the Buy Buttons section is required for the add-to-cart button to function properly.

  1. On the left sidebar, move the Vesuvio add to cart button under the Buy buttons section.

Move Button

Step 13: Adjust Button Settings (Optional)​

  1. Select the Vesuvio add to cart button and adjust settings such as width, height, and alignment on the right sidebar.

Button Settings

Step 14: Save Changes​

  1. Save your changes.

Save

Step 15: Navigate to Cart Page​

  1. In the theme customizer, navigate to the cart page.

Cart Page

Step 16: Add Section on Cart Page​

  1. On the left sidebar in the Template section, click Add section.

Add Section on Cart

Step 17: Add VesuvioPay Buy Now​

  1. In the Add section popup, select Apps and click on VesuvioPay buy now. This adds the Vesuvio buy-now button to the cart page.

Buy Now Button

Step 18: Position the Buy Now Button​

  1. On the left sidebar, move the Vesuvio buy now button to where you want it to appear.

Position Buy Now

Step 19: Save Changes​

  1. Save your changes.

Save Cart Changes

note

The VesuvioPay add-to-cart button will automatically change to an out of stock button when a product is out of stock.

6. Checkout Settings​

Add a buy-now button to your Shopify checkout. The button will be styled to match your existing checkout components — if you change checkout styles, those changes will also apply to the checkout buy-now button.

Step 1: Open Checkout Customizer​

  1. In Shopify Admin, navigate to Settings → Checkout and click the Customize button in the Configurations section.

Checkout Settings

Checkout Customizer

Steps 2–3: Add the Extension​

  1. On the left sidebar, click the Apps icon.
  2. Add the vesuvio-pay-checkout-buy-now-button checkout extension.

Add Checkout Extension

Step 4: Configure Extension Settings​

  1. In the extension settings, enter the following (both values are available on the VesuvioPay Dashboard):
    • VesuvioPay store ID
    • VesuvioPay public key
    • Include block in Shop Pay

Extension Settings

Step 5: Reposition (Optional)​

  1. Reposition the extension to your preferred location.

Reposition Extension

Step 6: Save Changes​

  1. Save your changes.

Save Checkout Settings

7. Cart Drawer Integration​

If your theme uses a cart drawer, you can add a VesuvioPay buy-now button directly in the cart drawer via theme code edits.

Step 1: Open Theme Code Editor​

  1. In Shopify Admin, navigate to Sales Channels → Online Store → Themes → Edit code.

Edit Code

Step 2: Find the Cart Drawer File​

  1. Find the file responsible for rendering the cart drawer.
tip

In most themes this is cart-drawer.liquid, but the file name may vary depending on your theme.

Find Cart Drawer File

Steps 3–4: Insert the Button Code​

  1. Insert the following code snippet where you want the buy-now button to appear.
  2. Optionally, apply CSS style changes. See the VesuvioPay SDK docs for buy-via-vesuvio-button styling options.
<buy-via-vesuvio-button
items='[{% for item in cart.items %}{"productId": {{ item.product_id }}, "variantId": {{ item.variant_id }}, "quantity": {{item.quantity}}}{%unless forloop.last%},{% endunless %}{% endfor %}]'
></buy-via-vesuvio-button>

Insert Code

Step 5: Save Changes​

  1. Save your changes.

Save Code Changes