marqant-lab / marqant-pay-subscriptions-graphql
marqant-lab/marqant-pay-subscriptions包的GraphQL实现。
v0.0.5
2020-06-03 15:44 UTC
Requires
- marqant-lab/marqant-pay-graphql: ~0.0.1
- dev-master
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-development
- dev-feature/tjv/chargeable-subscriptions
- dev-feature/tjv/3d-secure-and-additional-authentication
- dev-bugfix/tjv/fix-hasPaymentMethod-method
- dev-feature/tjv/invoice-query
- dev-feature/tjv/manual-subscriptions
- dev-feature/tjv/setup-pdf-invoices
- dev-feature/tjv/add-subscriptions-graphql
This package is auto-updated.
Last update: 2024-08-29 05:24:53 UTC
README
marqant-lab/marqant-pay-subscriptions包的GraphQL实现。
安装
您可以通过以下方式通过composer要求此包:
composer require marqant-lab/marqant-pay-subscriptions-graphql
接下来,您可以决定是否要发布默认的GraphQL模式。如果您对默认模式满意,您也可以选择仅从vendor/marqant-lab/marqant-pay-subscriptions-graphql/graphql
文件夹导入模式。
php artisan vendor:publish --tag=marqant_pay_graphql
这应该提供运行默认订阅实现所需的所有GraphQL查询。剩下要做的就是将subscriptions.graphql
文件包含到您的模式中。
在编辑器中打开模式,并在底部添加以下行。
#import marqant-pay-subscriptions.graphql
或者,如果您想使用供应商文件夹的默认模式,请使用以下行。
#import ../vendor/marqant-lab/marqant-pay-subscriptions-graphql/graphql/marqant-pay-subscriptions.graphql
就这样!您应该能够通过GraphQL使用marqant-pay和marqant-pay-subscriptions。尝试使用客户端如Insomnia或Altair进行测试。
开发
对于开发,我们建议您包含供应商文件夹中的graphql文件,因为当您在本地上开发时,它们将被符号链接到其中。