Get started with Stripe
Create a new graph in GraphOS and follow the "Set up your local development environment" instructions.
Update your local
router.yaml
file to configure yourSTRIPE_API_KEY
- be sure to update yoursupergraph.yaml
to use the same subgraph name (products
)
# router.yaml
connectors:
subgraphs:
products.stripe:
$config:
apiKey: ${env.STRIPE_API_KEY}
# supergraph.yaml
federation_version: =2.10.0
subgraphs:
products:
routing_url: http://stripe-products
schema:
file: products.graphql
Copy the prebuilt Connector file content into the
.graphql
file in your local project. There are other portions of the API likecheckout
available in that repository.Run
rover dev
with yourSTRIPE_API_KEY
:
export STRIPE_API_KEY=...
rover dev \
--supergraph-config supergraph.yaml \
--router-config router.yaml
Connectors resources
Learn more about Connectors by checking out the Connectors documentation.
Have questions? Check out the Apollo Community for Connectors to discuss.