Boost Sales with PayPal Smart Buttons on Shopify

Boost Sales with PayPal Smart Buttons on Shopify

Table of Contents

  1. Introduction
  2. Installing the Refresh theme
  3. Creating a Snippet
  4. Adding the Credit Card Button
  5. Adding PayPal Smart Buttons
  6. Customizing the Appearance
  7. Hiding the Checkout Button
  8. Removing the Drawer Cart
  9. Replacing the Client ID
  10. Conclusion


In this article, we will explore the process of integrating PayPal Smart Buttons into a Shopify store using the Refresh theme. We will guide you through the steps required to install the theme, create a snippet, add the credit card button, include PayPal buttons, customize the appearance, hide the checkout button, remove the drawer cart, and replace the client ID. By following this comprehensive guide, you will be able to seamlessly integrate PayPal Smart Buttons into your Shopify store without any prior coding knowledge.

1. Installing the Refresh theme

To begin the process, we first need to install the Refresh theme on your Shopify store. By following the provided link in the description, you can download the necessary code for the theme. Once the code is downloaded, navigate to the Shopify store dashboard and click on the three dots. From the dropdown menu, select "Duplicate" to create a backup of the current theme. Click on the three dots again and select "Edit code" to access the theme files.

2. Creating a Snippet

The next step involves creating a snippet to contain the code for the PayPal Smart Buttons. In the theme files, locate the "Snippets" folder and click on "Add a new snippet." Paste the name of the snippet, which should be "PayPal Smart Buttons dot liquid," as provided in the documentation. Save the changes to create the snippet.

3. Adding the Credit Card Button

Inside the newly created snippet, you will find two types of code for adding the credit card button and the PayPal button. If you already have PayPal integrated into your store and only require the credit card button, you can use the provided code specific to this scenario. Simply select the code, paste it inside the snippet, and save the changes.

4. Adding PayPal Smart Buttons

If you want to include both the PayPal button and the credit card button, you should follow the code provided for this purpose. Copy the complete code from the documentation, paste it inside the snippet, and save the changes.

5. Customizing the Appearance

To modify the appearance of the PayPal Smart Buttons, we will include the snippet into the cart page. Locate the "Sections" folder in the theme files and open the "Main Card Footer dot liquid" file. Scroll down until you find the line of code that corresponds to the additional checkout button. Paste the additional code above this line, which renders the PayPal Smart Buttons snippet. Save the changes to include the snippet in the cart page.

6. Hiding the Checkout Button

If you wish to hide the checkout button from the cart page, you can utilize the provided code in the theme settings. In the "Customize" section of the Shopify dashboard, click on "Theme settings" and then select "Cart." Choose "Page" instead of "Drawer" to navigate directly to the cart page when customers click on the "Add to cart" button.

7. Removing the Drawer Cart

To remove the drawer cart, you need to select "Page" instead of "Drawer" in the theme settings customization window. This will ensure that customers are directly redirected to the cart page when they add items to their cart.

8. Replacing the Client ID

To connect your PayPal account with your Shopify store, you need to replace the client ID in the code snippet. The client ID is obtained from your PayPal account and signifies that the payments will be directed to your PayPal account. Locate the code line in the "PayPal Smart Buttons dot liquid" file that includes the client ID value. Delete the existing client ID and paste in the live client ID provided by PayPal. Save the changes to establish the connection between PayPal and Shopify.

9. Conclusion

By following the steps outlined in this article, you can successfully integrate PayPal Smart Buttons into your Shopify store using the Refresh theme. This enables you to accept genuine payments from customers and have the funds deposited directly into your PayPal account. If you encounter any issues or require further assistance, feel free to contact us for support. Thank you for reading, and we hope you found this guide helpful in expanding your online payment options.


  • Integrating PayPal Smart Buttons into your Shopify store using the Refresh theme.
  • Step-by-step instructions on installation, snippet creation, code implementation, and customization.
  • Options to include credit card buttons and PayPal buttons for payment processing.
  • Customizing the appearance of the buttons to match your store's design.
  • Hiding the checkout button and removing the drawer cart for a streamlined user experience.
  • Connecting your PayPal account with Shopify by replacing the client ID.
  • Accepting genuine payments and having funds directly deposited into your PayPal account.


Q: Can I use this integration with any Shopify theme? A: The instructions provided in this article are specifically for the Refresh theme in Shopify. However, you can adapt the steps and code to integrate PayPal Smart Buttons into other themes as well.

Q: Will the PayPal Smart Buttons work on mobile devices? A: Yes, the integration ensures that the PayPal Smart Buttons are responsive and optimized for mobile viewing, providing a seamless payment experience for customers on all devices.

Q: Can I undo the changes if I encounter any issues? A: Absolutely! The guide includes instructions on reversing the changes and reverting to the previous settings in case any issues arise during the integration process.

Q: Can I customize the appearance of the PayPal Smart Buttons to match my store's design? A: Yes, the provided code allows for customization of the appearance of the PayPal Smart Buttons, enabling you to match them to your store's branding and design.

I am a shopify merchant, I am opening several shopify stores. I use ppspy to find Shopify stores and track competitor stores. PPSPY really helped me a lot, I also subscribe to PPSPY's service, I hope more people can like PPSPY! — Ecomvy

Join PPSPY to find the shopify store & products

To make it happen in 3 seconds.

Sign Up
App rating
Shopify Store
Trusted Customers
No complicated
No difficulty
Free trial