Introduction

The Magento 2 Partial Payment Extension by FMEextensions allows your store to offer flexible payment plans to customers. It enables customers to pay for products in installments instead of making a full upfront payment, which improves affordability and encourages conversions, especially for high-ticket items.

Key Features

  • Set custom down payments and number of installments.
  • Automatically schedule and charge installments on set dates.
  • Create and manage multiple payment plans for products or categories.
  • Customers can view active plans, remaining balance, and payment history.
  • Works with various payment gateways and supports simple and configurable products.

Compatibility

This extension is compatible with the following Magento versions.

  • 2.1.x
  • 2.2.x
  • 2.3.x
  • 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7

Installation Guide

Download Partial Payment from your account dashboard. Now you have the following 2 methods to install the extension.

Method 1

  1. Unzip fme_layaway-x.x.x.zip to a local folder.
  2. Make folder FME into your_magento_directory/app/code/ (if you don't find code folder within app folder, please create it first).
  3. Create the following folders (as mentioned in step 2):
  • app/code/FME
  • app/code/FME/GiftWrapper
  1. Copy all the contents from fme_gift-wrapper-x.x.x to newly created GiftWrapper folder.
  2. Now open console or shell.
  3. Go to your Magento directory and run the following commands:
  • php bin/magento module:enable FME_GiftWrapper
  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy -f (-f may not work in Magento versions less than 2.2.x.)
  • chmod command for var/ pub/static and generated/ folders
  1. Reload the Magento admin and you will see FME Extensions on the left side menu of your admin panel.

Method 2

  1. Unzip fme_gift-wrapper-x.x.x.zip to a local folder.
  2. Make folder FME into your_magento_directory/app/code/ (if you don't find code folder within app folder, please create it first).
  3. Create the following folders (as mentioned in step 2):
  • app/code/FME
  • app/code/FME/GiftWrapper
  1. Copy all the contents from fme_gift-wrapper-x.x.x to newly created GiftWrapper folder.
  2. Go to your_magento_directory/app/etc/
  3. Open config.php file in etc folder
  4. Add the following line in $modules array at the end ‘FME_GiftWrapper’=>1,
  5. Now open console or shell.
  6. Go to your Magento directory and run the below commands
  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy -f (-f may not work in Magento versions less than 2.2.x.)
  • chmod command for var/ pub/static and generated/ folders
  1. Reload the Magento admin and you will see FME Extensions on the left side menu of your admin panel.

GraphQL APIs

Queries

1. Get Layaway Products

query Products {
    products(search: "24-MB04") {
        total_count
        layaway {
            config_layaway_first
            config_layaway_fixed_date
            config_layaway_maxinstallments
            config_layaway_period
            config_layaway_period_frequency
            config_layaway_status
            created_time
            layaway_first
            layaway_fixed_date
            layaway_force
            layaway_id
            layaway_maxinstallments
            layaway_period
            layaway_period_frequency
            layaway_status
            product_id
        }
    }
}

2. Get Layaway Orders

{
  customer {
    orders {
      items {
        increment_id
        layaway {
          layaway_lastdate
          layaway_remaining
          is_layaway
        }
      }
    }
  }
}

Mutations

1. Enable Product with Layaway

mutation SaveLayawayAttributes {
    saveLayawayAttributes(
        product_id: 4
        layaway_status: 1
        layaway_first: "10"
        layaway_maxinstallments: 4
        layaway_period: 3
        layaway_period_frequency: 30
    ) {
        layaway_first
        layaway_fixed_date
        layaway_force
        layaway_maxinstallments
        layaway_period
        layaway_period_frequency
        layaway_status
        message
        product_id
        success
    }
}