# Shopify

The PayLater plugin offers merchants the ability to integrate "Buy Now, Pay Later" (BNPL) functionality into their Shopify stores, providing customers with flexible payment options. This comprehensive guide will walk you through the step-by-step installation and configuration process for seamless integration.

## Manual Step

### Step 1: Setup PayLater as a Manual Payment Method

* Go to your Shopify Admin (ex. \[yourstore.com].myshopify.com/admin) and click on Settings in the left-hand navigation panel

<figure><img src="/files/X26idQPhss0Wx055ZWpk" alt=""><figcaption></figcaption></figure>

* Click on the “Payment Menu” from left menu & scroll down to the “Manual payment methods” section.

<figure><img src="/files/5XvV9JwflFny0Wu4yUby" alt=""><figcaption></figcaption></figure>

* In this section, click on the dropdown labeled “Manual payment methods” and select "Create custom payment method"

<figure><img src="/files/NzMFbrmCIjPBdIXjnHJ1" alt=""><figcaption></figcaption></figure>

* In the “Set up manual payment form”, copy/paste the details as shown below in the appropriate field (NOTE: You can write according to your checkout design):
  * (Custom payment method name) Split in 4 interest-free payments with PayLater<br>
  * (Additional Details) PayLater allows you to split your purchase into  4  interest-free installments.
  * (Payment Instructions) You'll receive an email with a secure link from PayLater to complete your payment.

<figure><img src="/files/PouNE2766QXlg849fZvE" alt=""><figcaption></figcaption></figure>

* Click on the "Activate" button to save your work. You will see “Split in 4 interest-free payments with PayLater“ appear under the Manual Payment Methods.

<figure><img src="/files/tIzxfqwk1jOzKdiTUncl" alt=""><figcaption></figcaption></figure>

### Step 2: Setting Webhook

* In Settings, go to “Notifications“ in the left menu and then click on the Webhooks.

<figure><img src="/files/AN68BkFCyaeweJuKfhwT" alt=""><figcaption></figcaption></figure>

* Now click “Create webhook”

<figure><img src="/files/nQUOlssJxlXW0HC3NQiu" alt=""><figcaption></figcaption></figure>

* In the “Add webhook” form, copy/paste the details as shown below in the appropriate field and click on Save
  * Event (Order Creation)
  * Format (JSON)
  * URL (<https://shopify.paylaterapp.com/api/webhooks/shopify>)
  * Webhook API version (Unstable)

<figure><img src="/files/80OHVNLzTMzpfE6I2Kfw" alt=""><figcaption></figcaption></figure>

### Step 3: Linking Shopify to PayLater Backend App

* In Settings, go to “Apps and sales channel“ in the left menu and then click on the Develop apps button on the top.
*

```
<figure><img src="/files/L9nTTJ0zkzjwXm79ErPz" alt=""><figcaption></figcaption></figure>
```

*

```
<figure><img src="/files/ciHtVYl1Y4g7JGyDIAB2" alt=""><figcaption></figcaption></figure>
```

<figure><img src="/files/2ih0HXXAkyTiXXyXF8ce" alt=""><figcaption></figcaption></figure>

* Click on “Create an app“

<figure><img src="/files/XHDk9HkCjkZTeEqfuE2L" alt=""><figcaption></figcaption></figure>

* Set “PayLater Payment” as App name

<figure><img src="/files/pbcuwz1JrrdtuW2llLsr" alt=""><figcaption></figcaption></figure>

* Fill App URL form with <https://shopify.paylaterapp.com/api/webhooks/shopify> value

<figure><img src="/files/D1RHPFu4irCh28ifcMOh" alt=""><figcaption></figcaption></figure>

* Select below mentioned Scopes
  * Orders (Read and Write)
  * Fulfillment Services (Read and Write)

<figure><img src="/files/beLUTds9u0v0DZFB0GE6" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/nHGVBktREWJIFt85cJNp" alt=""><figcaption></figcaption></figure>

* Also set Redirect URLs form with <https://shopify.paylaterapp.com/api/webhooks/shopify> value

<figure><img src="/files/E3fJcnt4IKWD2LtPAutd" alt=""><figcaption></figcaption></figure>

* Click “Release”

<figure><img src="/files/CeKkvOkC8rtWML09ynRj" alt=""><figcaption></figcaption></figure>

* Set Version name (optional) and then click “Release”
  * Version name (optional) ⇒ v1-2025

<figure><img src="/files/P49O9DrqCkPVCbk2yKbT" alt=""><figcaption></figcaption></figure>

### Final Step:

* Save all the keys you receive during this all process.
* Send following keys to your account manager to activate your store for payments.

  * Shop Url (myshopfy.com)
  * Access Token (shpat\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*) or Client ID
  * Shopify API Secret (shpss\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://paylater.gitbook.io/paylater-docs/getting-started/shopify.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
