Posted on June 24th, 2019 at 1:00 AM
Accept Cryptocurrency on your website

How to accept Cryptocurrencies on Shopify Stores.


In this article we are going to show you how to integrate the CryptocurrencyCheckout Platform into your Shopify store so that you can start accepting Cryptocurrencies like: Bitcoin, Litecoin, Ethereum, Dash, SocialSend, CryptoDezireCash and PirateChain as payment for your sales.

There are several ways to integrate Cryptocurrency Checkout into Shopify’s platform. However there are a few requirements that we would like to meet on our integration in this article.


Things we want to achieve in this integration:

#1: We would like to maintain all of our orders inside of Shopify’s platform. This includes using Shopify’s checkout process to securely generate an order, collect buyer info, calculate shipping costs, taxes, offer discounts, allow coupon codes, etc.

#2: We would also like to leave the ability for customers to be able to review their past orders, and maintain all order records on our Shopify store itself.

#3: We want the order to stay in “Pending Payment” status until we can manually verify we have received the crypto payment, allowing us to make sure that all confirmations are received on the blockchain before changing the order status to “payment received”.

#4: We want to be able to use our standard Shipping and Bookkeeping integrations for Shopify, without needing any additional plugins or software to add CryptocurrencyCheckout to our store.


Now that we've discussed how we plan to integrate, let's get started with the installation.


Shopify Cryptocurrency Checkout Installation


Step 1: Create a CryptocurrencyCheckout payment option in Shopify.


Log into your Shopify Admin Dashboard.

Click on the Settings Gear in the bottom left.

Select “Payment Providers” from the available options.

Locate the “Manual Payment Methods” section located near the bottom.

Click on “Create Custom Payment Method”, and fill in the details to fit your stores needs.

Our Example:
Name of the custom payment method:

CryptocurrencyCheckout

Additional details:

You can now pay for your order with: Bitcoin, Dash, Litecoin, Ethereum.

Payment instructions:

To begin your Cryptocurrency Payment:
Just click the "Pay Now With Cryptocurrency" Button located on the page.

You will be taken to the CryptocurrencyCheckout.com Payment gateway to begin your payment.

Click Activate.



Step 2: Create CryptocurrencyCheckout Connection.


Login to your CryptocurrencyCheckout.com Dashboard.

Click on the “New Connection” option.

Insert your Store details.

Now insert the Wallet Addresses of all the Cryptocurrencies you would like to receive.

If there is any Cryptocurrencies you do not want to accept on your store just leave those sections blank.

Optional: Select if you would like to charge a markup to accept an individual crypto, or offer a store discount.

Optional: You can also view how to use our Market Volatility Protection Tools Here

Click Submit.



Step 3: Generate CryptocurrencyCheckout Script.


Log into your CryptocurrencyCheckout.com Dashboard.

Click “API Keys”, Then Generate an API key for your store.

Copy and paste the API Key into notepad, or another text editor for later.

In the dashboard, go to the Installation Scripts > Store Integrations and select “Shopify Store”

Paste the API key you saved earlier into the “Insert API Key” Section.

Click the “Generate Installation Scripts” button.

Your installation script will be automatically generated for your store.

Copy and paste it into notepad or another text editor.

IMPORTANT!
Remove the periods located in the store variables surrounded by double curly braces. ((order.name)) ((order.total)) ((order.created))
View the image below for example.

(Our site uses similar code to Shopify so we must add the periods to make them display in the generated script.)



Step 4: Installing the Script into your Shopify Store.


Login to your Shopify Admin Dashboard.

Click on the "Settings" Gear in the bottom left.

Select “Checkout” from the available options.

Scroll down the page to the “Order Processing” Section.

Find the "Additional Scripts" text input box, and paste the code you generated in Step #3.
(Make sure you removed the extra periods as directed at the end of the last step, or Price and Order Details will not be properly passed.)

Press Save.



Optional: Installing a backup Checkout Button inside your Shopify Customer Order History Page.


Sometimes you may want a backup Payment Button inside the Customer Order History Page, this button can be used by your customers to retry the payment if for some reason the customer did not fully complete the payment process on their first try.


To install the Button onto the Order History Page:

Log into your Shopify Admin Dashboard.

Click on the Online Store/Themes tab on the left.

In the current theme box go to “Actions”

Select “Edit Code”

Go to the Templates section.

Locate and open: (/) customers/order.liquid

Scroll to the bottom of the code.

You should see: (( order.shipping_address | format_address ))

Followed by a few div close tags.

Paste the CryptocurrencyCheckout Script you generated between the order.shipping.address field, and the end div tags.

This will add the CryptoCheckout payment button to your Order History Page.

Press Save.



You have successfully integrated CryptocurrencyCheckout into Shopify!

We suggest you generate a test order on your store and go through the entire checkout process to make sure everything works as desired.

If you have any issues feel free to send us a message, or join us on discord.