Lease-to-Own & Warranty Products

Overview

If you offer lease-to-own payment options, indicating products in the cart are leasable or are warranty items will be required. The ChargeAfter Payment app treats all products as leasable or as a warranty item by default. Follow the steps below to correctly tag products as non-leasable or warranty:

Configure Extra Feature option

  1. Navigate to Shopify Dev Dashboard > Apps.

  2. Click on Create App, type any name and submit to create.

  3. Scroll to the URLs section and type App URL as https://shopify.dev/apps/default-app-home

  4. Scroll down and click on Release button, confirm the release creation

  5. Navigate to Settings tab, copy Client ID and Secret values. These values will apply for using [authorization code grant](Implement authorization code grant manually)

  6. Build URI by template and redirect to

    https://{shop}.myshopify.com/admin/oauth/authorize?client_id={client_id}&scope=read_products&grant_options[]=access_mode
    

    Where:

    • {shop} - The name of the shop store
    • {client_id} - The client ID for the app (a copy from step 5)
  7. Complete app installation

    Copy a code value from the address field after redirect to https://shopify.dev/apps/default-app-home (configured App URL on step 3)

  8. Use a Curl \ Postman (or a similar software) to get access token via a code

    curl -X POST  
         https\://{shop}.myshopify.com/admin/oauth/access_token  
         -H 'Content-Type: application/x-www-form-urlencoded'  
         -H 'Accept: application/json'  
         -d 'client_id={client_id}'  
         -d 'client_secret={client_secret}'  
         -d 'code={authorization_code}'
    

    Where:

    • {client_id} - The client ID for the app (a copy from step 5)
    • {client_secret} - The client secret for the app (a copy from step 5)
    • {authorization_code} - The authorization code provided in the redirect (a copy from step 7)

    Copy access_token value from a response:

    {
      "access_token": "f85632530bf277ec9ac6f649fc327f17",
      "scope": "write_orders,read_customers"
    }
    
  9. Navigate to Admin > Settings > Payments, choose the payment method and click on Manage button.

  10. Scroll to Extra Features section and paste copied access token in the next field, save changes.

    Settings Page

    Settings Page


Tag Product as Non-Leasable

  1. From the Admin, go to the Product details page.
  2. In the Organization section, under Tags, enter the words “no leasable” and press Enter.
    The product should now be tagged as no leasable as shown below:

Tag Warranty Items

  1. From the Admin, go to the Product details page.

  2. In the Product Organization section, under Tags, enter “warranty” as pictured below and press Enter.