Skip to content

Commit

Permalink
added graphql schema to fetch payment enabled/disabled from config (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
gene-roussetos authored May 31, 2023
1 parent 2894bfb commit fa69dc4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions etc/graphql/di.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\StoreGraphQl\Model\Resolver\Store\StoreConfigDataProvider">
<arguments>
<argument name="extendedConfigData" xsi:type="array">
<item name="rvvup_payments_active" xsi:type="string">payment/rvvup/active</item>
</argument>
</arguments>
</type>
</config>
3 changes: 3 additions & 0 deletions etc/schema.graphqls
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type StoreConfig {
rvvup_payments_active: String @doc(description: "Rvvup Payments Active")
}

0 comments on commit fa69dc4

Please sign in to comment.