How to connect Shopify with Mypay
It’s easy to connect Mypay with Shopify and requires absolutely zero coding experience. You have only to follow the instructions you will find below:
Add Mypay Payment provider:
First of all navigate to Shopify Settings -> Payment providers (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/settings/payments).

From this screen disable “Express Checkout”, “Accept credit cards” and “Alternative payments”. Go to Manual payments -> Create custom payment method and create Mypay using the info below:
- Name: External payment via Mypay Billing Platform
- Additional details: You will be redirected to Mypay 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.mypay.gr/Content/js/v1/mypay.js"></script>
<script>
Mypay.Checkout({
merchantUniqueID: {{ order.id }},
publicCheckoutPageID: YOUR_CHECKOUT_PAGE_ID_FROM_MYPAY,
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)

Click “Create a new private app” and enter your desired Name and email. Assign “Read” and “Write” to all permissions and click “Save”.
Enable Shopify in your Mypay project:
Navigate to Mypay Settings -> Plugin Settings and enable Shopify.

Enter your shopify store subdomain and password (as obtained before from your store keys).