Skip to content

Commit

Permalink
Update documentation on usage in README.md (#2)
Browse files Browse the repository at this point in the history
* Initial commit | Created a module for the mollie payment url over GraphQl

* Added sequences

* Added dependencies

* Moved all logic to new class

* Improved requirements

* Added strict return type and check if mollie transaction doesn't fail

* Added required modules to sequence

* Removed unused import

* Split code and check if order exists

* Removed minimum stability

* Added documentation on the usage of the GraphQl call
  • Loading branch information
Jeffrey-H authored Feb 26, 2020
1 parent a2eeacc commit 60df9b9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,19 @@ Add GraphQl support to Mollie Magento 2 module.
composer require mooore/magento2-module-mollie-graph-ql
bin/magento setup:upgrade
```

## Usage
```graphql
mutation($cartId: String!) {
placeOrder(input: { cart_id: $cartId }) {
order {
order_number
payment_url
}
}
}
```

The `payment_url` attribute is added to the `CreateOrder` mutation. Using the `payment_url` attribute, the customer can be redirected to iDeal after placing an order.

This modules does not support any payment methods other than Mollie.

0 comments on commit 60df9b9

Please sign in to comment.