- Install & activate WooCommerce
- Install & activate Razorpay for WooCommerce
- Install & activate WPGraphQL
- Clone or download the zip of this repository into your WordPress plugin directory & activate the WP GraphQL WooCommerce plugin.
- (Optional) Install & activate WPGraphQL-JWT-Authentication to add a
login
mutation that returns a JSON Web Token. - (Optional) Install & activate WPGraphQL-CORS to add an extra layer of security using HTTP CORS and some of WPGraphQL advanced functionality.
It adds Razorpay for WooCommerce functionality to the WPGraphQL schema using WooCommerce's objects.
- Mutation Create payment intent using rezorpay with complex filtering options.
- Add your API key and secrets on wp-config.php.
define('RAZORPAY_API_KEY', 'your_api_key_id');
define('RAZORPAY_API_SECRET', 'your_api_secrets');
Feel free to test out the extension using this GraphiQL Playground. The playground allows you to execute queries and mutations, as well as view the schema.