How to connect Shopify with Nummuspay
It's easy to connect Nummuspay with Shopify and requires absolutely zero coding experience. You have only to follow the instructions you will find below:
Add Nummuspay Payment provider:
First of all navigate to Shopify Settings -> Payment providers (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/settings/payments).
- Name: External payment via Nummuspay Billing Platform
- Additional details: You will be redirected to Nummuspay payment page in order to complete your purchase securely.
Add Checkout Additional scripts:
Navigate to Shopify settings -> Checkout (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/settings/checkout).
From this screen Go to "Order processing" -> "Additional scripts" and enter the code below:
<script src="https://api.nummuspay.com/Content/js/v1/nummuspay.js"></script> <script> Nummuspay.Checkout({ merchantUniqueID: {{ order.id }}, publicCheckoutPageID: YOUR_CHECKOUT_PAGE_ID_FROM_NUMMUSPAY, currency: "{{ shop.currency }}", amount: {{ order.total_price }} / 100, tax: 0, firstName: "{{ order.customer.first_name }}", lastName: "{{ order.customer.last_name }}", email: "{{ order.customer.email }}", company: "{{ order.billing_address.company }}", phone: "{{ order.billing_address.phone }}", billingAddress1: "{{ order.billing_address.address1 }}", billingAddress2: "{{ order.billing_address.address2 }}", billingCountry: "{{ order.billing_address.country_code }}", billingCity: "{{ order.billing_address.city }}", billingState: "{{ order.billing_address.province_code }}", billingZip: "{{ order.billing_address.zip }}" }); </script>
Obtain your store's keys:
The next step is to Navigate to "Apps" -> "Manage private apps" (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)
Enable Shopify in your Nummuspay project:
Navigate to Nummuspay Settings -> Plugin Settings and enable Shopify.
Enter your shopify store subdomain and password (as obtained before from your store keys).