mageplaza / magento-2-reward-points-graphql

mageplaza/magento-2-reward-points-graphql

Magento 2 Reward Points Graphql Extension

magento2-module Compatibility: Not compatible Code Quality: Fail Tests: N/A Security: Pass proprietary

Magento 2 Reward Points GraphQL / PWA

Magento 2 Reward Points GraphQL is now a part of Mageplaza Reward Points extension that adds GraphQL features. This supports PWA compatibility. With this extension, you can get and push data on the website with GraphQL.

Reward Points for Magento 2 is a powerful loyalty program that converts buyers into customers, increases conversion rates, and boosts sales with a smart automatic reward system.

The reward point labels can be customized easily from the admin backend. You can use eye-catching point labels such as coin, flower, heart, etc., to attract customers to your reward programs. This will arouse their interest in your program and shopping in your store. Spending sliders will be another factor to increase customer experience and joyfulness when shopping in your store. Instead of filling in the number of points spent, they can pull the slider, and the corresponding point will be subtracted.

It’s flexible for online store owners to set up rewards levels based on earning and spending rules. Reward points can also be given off when customers share your products or content on social media. This will help your products or services spread across social media while increasing the interaction between your customers and your store. Reward for behaviors is also effective as customers can earn points by performing an action. This is a great incentive for them to continue being active in your store with some actions like subscribing, purchasing, reviewing, or rating. They can even earn points by referring to their friends, who can also receive points and get an appealing discount on the store’s products.

Magento 2 Reward Points enables you to offer customers a transparent and reasonable point spending system that allows them to purchase products on your store by points. It makes the shopping process funnier, and customers can see the real advantages of reward points they’ve earned.

Customers' earning and spending points can be tracked easily via an advanced report supported by the Mageplaza Report extension. The store admin will know if any customer is missing out on their points to immediately give them incentive offers or reward points to earn their interest back. Importing and exporting the reward points transaction are also done quickly, saving a lot of time for the store admin.

1. How to install

Run the following command in Magento 2 root folder:

composer require mageplaza/module-reward-points-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Note:
Magento 2 Reward Points GraphQL requires installing Mageplaza Reward Points in your Magento installation.

2. How to use

To start working with Reward Points GraphQL in Magento, here are the requirements to follow:

  • Use Magento 2.3.x. Return your site to developer mode.
  • Install chrome extension (currently does not support other browsers).
  • Set GraphQL endpoint as http://<magento2-3-server>/graphql in the url box. Click on Set endpoint. (e.g., http://develop.mageplaza.com/graphql/ce232/graphql).
  • The queries and mutations that Mageplaza support helps to see details of Transaction, Invitation, etc., through customer query, view Spending Point information, create Invite Email, and more. You can find more details here.

3. Devdocs

Click on Run in Postman to add these collections to your workspace quickly.

Magento 2 blog graphql pwa

4. Contribute to this module

Feel free to Fork and contribute to this module.

You can create a pull request. We will consider to merge your changes in the main branch.

5. Get support

  • Feel free to contact us if you have any question. We're willing to hear from you and resolve your problems.
  • If you find this post helpful, please give us a Star star
Versions
Version Stability QA Status Compatibility Released
1.2.1 stable Fail Not compatible Details 2024-12-12 04:38:37
1.2.0 stable Not tested Not yet tested Details 2022-02-08 02:42:11
1.1.0 stable Not tested Not yet tested Details 2020-12-10 04:52:53
1.0.2 stable Not tested Not yet tested Details 2020-07-10 04:25:19
1.0.0 stable Not tested Not yet tested Details 2020-03-06 01:50:57

No dependencies declared

This package's composer.json doesn't declare any required, suggested, replaced, or conflicting packages.

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Fail di error Fail di error
2.4.8 Fail di error Fail di error
2.4.9 Fail di error Fail di error

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 47 47 warnings (ruleset: Magento2) — 44 auto-fixable with phpcbf
PHPMD Warning 6 6 rule violations (UnusedFormalParameter:6)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 111 111
2.4.8 111 143
2.4.9 143 143

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
proprietary
Authors

More from mageplaza

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.