PHPackages                             buckaroo/magento2graphql - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. buckaroo/magento2graphql

ActiveMagento2-module[API Development](/categories/api)

buckaroo/magento2graphql
========================

Buckaroo Magento2 GraphQL Support

1.1.1(8mo ago)120.0k↓41.8%1[2 issues](https://github.com/buckaroo-it/Magento2_GraphQL/issues)[1 PRs](https://github.com/buckaroo-it/Magento2_GraphQL/pulls)CC-BY-NC-ND-3.0PHP

Since Mar 27Pushed 8mo ago11 watchersCompare

[ Source](https://github.com/buckaroo-it/Magento2_GraphQL)[ Packagist](https://packagist.org/packages/buckaroo/magento2graphql)[ Docs](https://www.buckaroo.nl)[ RSS](/packages/buckaroo-magento2graphql/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (9)Used By (0)

 [![](https://camo.githubusercontent.com/e2c3b6afb3f3b9229b8b6937668ba4f8ff98cdf4e5238455faed3c5711e13961/68747470733a2f2f7777772e6275636b61726f6f2e6e6c2f6d656469612f77307364686b6a642f6d6167656e746f325f6772617068716c5f69636f6e2e706e67)](https://camo.githubusercontent.com/e2c3b6afb3f3b9229b8b6937668ba4f8ff98cdf4e5238455faed3c5711e13961/68747470733a2f2f7777772e6275636b61726f6f2e6e6c2f6d656469612f77307364686b6a642f6d6167656e746f325f6772617068716c5f69636f6e2e706e67)

Buckaroo Magento2 GraphQL extension
===================================

[](#buckaroo-magento2-graphql-extension)

We created a additional GraphQL extension for our [Buckaroo Magento 2 Payments Plugin](https://github.com/buckaroo-it/Magento2).
This plugin is needed for our [Hÿva React checkout extension](https://github.com/buckaroo-it/Magento2_Hyva).

**What is GraphQL?**
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.

### Index

[](#index)

- [Installation](#installation)
- [Requirements](#requirements)
- [Usage](#usage)
- [Additional information](#additional-information)
- [Contribute](#contribute)
- [Versioning](#versioning)
- [Additional information](#additional-information)

---

### Requirements

[](#requirements)

To use the plugin you must use:

- Buckaroo Magento 2 Payment module 1.52.1 or higher.

Installation
------------

[](#installation)

- Install the module composer by running the following command: `composer require buckaroo/magento2graphql`
- Enable the module by running the following command: `php bin/magento module:enable Buckaroo_Magento2Graphql`
- Apply database updates by running the following command: `php bin/magento setup:upgrade`
- Flush the cache by running the following command: `php bin/magento cache:flush`

Usage
-----

[](#usage)

### Example requests

[](#example-requests)

- Get the available payments methods with additional data for gateways:

```
query {
    cart(cart_id: "{ CART_ID }") {
        available_payment_methods {
            code
            title
            buckaroo_additional {
                key
                values {
                    name
                    code
                    img
                }
                value
            }
        }
    }
}
```

- Place order request example: In order to place a order you will need to the following 3 steps:
    - Set the payment method on the cart with the required additional parameters using the default `setPaymentMethodOnCart` and the `buckaroo_additional` property
    - Set the return url using our custom migration `setBuckarooReturnUrl` required in order for the payment engine to redirect back to your application after the payment was completed/canceled/failed
    - Finally execute the the default `placeOrder` that will return a redirect url for the payment engine to complete the payment

For iDEAL we have the following example (Note: iDEAL no longer requires issuer selection - bank selection happens on the redirect page):

```
  mutation doBuckarooPayment(
  $cartId: String!
  $returnUrl: String!
  $methodCode: String!
) {
  setPaymentMethodOnCart(
    input: {
      cart_id: $cartId
      payment_method: {
        code: $methodCode
        buckaroo_additional: { buckaroo_magento2_ideal: {} }
      }
    }
  ) {
    cart {
      items {
        product {
          name
          sku
        }
      }
    }
  }
  setBuckarooReturnUrl(input: { return_url: $returnUrl, cart_id: $cartId }) {
    success
  }
  placeOrder(input: { cart_id: $cartId }) {
    order {
      order_number
      buckaroo_additional {
        redirect
        transaction_id
        data {
          key
          value
        }
      }
    }
  }
}
```

After this migration is performed you will need to store the buckaroo `transaction_id` and redirect the user to complete the payment

### Retrieve the payment status

[](#retrieve-the-payment-status)

### Retrieve Payment Status

[](#retrieve-payment-status)

After the user completes payment and is redirected back, use the `buckarooPaymentTransactionStatus` query with the stored `transaction_id`:

**Option 1: Inline syntax (simple)**

```
mutation {
  buckarooPaymentTransactionStatus(input: { transaction_id: "E397CF4C24E64AA299F45246F9906F45" }) {
    payment_status
    status_code
  }
}
```

**Option 2: With variables (recommended for dynamic values)**

```
mutation checkPaymentStatus($input: BuckarooPaymentTransactionStatusInput!) {
  buckarooPaymentTransactionStatus(input: $input) {
    payment_status
    status_code
  }
}
```

Variables:

```
{
  "input": {
    "transaction_id": "E397CF4C24E64AA299F45246F9906F45"
  }
}
```

### SEPA Direct Debit Example

[](#sepa-direct-debit-example)

For SEPA Direct Debit payments, use the following format:

```
mutation doSepaPayment($cartId: String!, $returnUrl: String!) {
  setPaymentMethodOnCart(
    input: {
      cart_id: $cartId
      payment_method: {
        code: "buckaroo_magento2_sepadirectdebit"
        buckaroo_additional: {
          buckaroo_magento2_sepadirectdebit: {
            customer_iban: "NL13TEST0123456789"
            customer_bic: "TESTNL2A"
            customer_account_name: "Test Account Holder"
          }
        }
      }
    }
  ) {
    cart {
      selected_payment_method {
        code
      }
    }
  }
  setBuckarooReturnUrl(input: { return_url: $returnUrl, cart_id: $cartId }) {
    success
  }
  placeOrder(input: { cart_id: $cartId }) {
    order {
      order_number
      buckaroo_additional {
        transaction_id
      }
    }
  }
}
```

### Additional information

[](#additional-information)

- **Support:**
- **Contact:**  or +31 (0)30 711 50 50

### Contribute

[](#contribute)

We really appreciate it when developers contribute to improve the Buckaroo plugins. If you want to contribute as well, then please follow our [Contribution Guidelines](CONTRIBUTING.md).

> ### Community is the 💚 of open source
>
> [](#community-is-the-green_heart-of-open-source)
>
> Developing beautiful products is not possible without the input of a community. We thank everyone who actively contributes to this.
>
> [![florinel-chis's avatar](https://github.com/florinel-chis.png?size=50)](https://github.com/florinel-chis) [![peterkoppenaal's avatar](https://github.com/peterkoppenaal.png?size=50)](https://github.com/peterkoppenaal) [![serpentscode's avatar](https://github.com/serpentscode.png?size=50)](https://github.com/serpentscode) [![paales's avatar](https://github.com/paales.png?size=50)](https://github.com/paales) [![raoulguillermo's avatar](https://github.com/raoulguillermo.png?size=50)](https://github.com/raoulguillermo)

### Versioning

[](#versioning)

 [![](https://camo.githubusercontent.com/de69cdd7b491bfe377e2f42dfca7e227064668e3452b6430ac3905334375adf9/68747470733a2f2f7777772e6275636b61726f6f2e6e6c2f6d656469612f333635312f6772617068716c5f76657273696f6e696e672e706e67)](https://camo.githubusercontent.com/de69cdd7b491bfe377e2f42dfca7e227064668e3452b6430ac3905334375adf9/68747470733a2f2f7777772e6275636b61726f6f2e6e6c2f6d656469612f333635312f6772617068716c5f76657273696f6e696e672e706e67)

**Please note:**
This file has been prepared with the greatest possible care and is subject to language and/or spelling errors.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~446 days

Total

3

Last Release

257d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7081446?v=4)[Shu Chen](/maintainers/shuch3n)[@ShuCh3n](https://github.com/ShuCh3n)

---

Top Contributors

[![vegimcarkaxhija](https://avatars.githubusercontent.com/u/24407953?v=4)](https://github.com/vegimcarkaxhija "vegimcarkaxhija (17 commits)")[![harli91](https://avatars.githubusercontent.com/u/3657605?v=4)](https://github.com/harli91 "harli91 (8 commits)")[![Buckaroo-Rene](https://avatars.githubusercontent.com/u/105488705?v=4)](https://github.com/Buckaroo-Rene "Buckaroo-Rene (6 commits)")[![Buckaroo-Rens](https://avatars.githubusercontent.com/u/59445921?v=4)](https://github.com/Buckaroo-Rens "Buckaroo-Rens (6 commits)")[![florinel-chis](https://avatars.githubusercontent.com/u/2117053?v=4)](https://github.com/florinel-chis "florinel-chis (2 commits)")[![k-kuiper](https://avatars.githubusercontent.com/u/165915462?v=4)](https://github.com/k-kuiper "k-kuiper (1 commits)")[![peterkoppenaal](https://avatars.githubusercontent.com/u/32506814?v=4)](https://github.com/peterkoppenaal "peterkoppenaal (1 commits)")[![serpentscode](https://avatars.githubusercontent.com/u/2503034?v=4)](https://github.com/serpentscode "serpentscode (1 commits)")

### Embed Badge

![Health badge](/badges/buckaroo-magento2graphql/health.svg)

```
[![Health](https://phpackages.com/badges/buckaroo-magento2graphql/health.svg)](https://phpackages.com/packages/buckaroo-magento2graphql)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
