docs(getting-started): remove AI warning and refactor to focus on practical payment integration#53
docs(getting-started): remove AI warning and refactor to focus on practical payment integration#53
Conversation
…ontent Migrate Getting Started page from AI-generated placeholder to verified content based on legacy Integration Tutorial. Remove AI warning banner, correct account setup information (no testnet separation, single account type), and add accurate Node.js integration examples with webhook handling. Also update Integration Tutorial links to /api-setup/ path for consistency.
Greptile SummaryThis PR successfully removes the AI-generated warning and refactors the getting started guide to provide a practical, hands-on Node.js integration example. The new approach is more actionable and focused on helping developers create their first payment request quickly. Key improvements:
Issues found:
These issues should be fixed to ensure developers can follow the guide without errors. Confidence Score: 3/5
Important Files Changed
Last reviewed commit: a6b536c |
| method: 'POST', | ||
| headers: { | ||
| 'Authorization': `Bearer ${process.env.REQUEST_NETWORK_API_KEY}`, | ||
| 'X-Api-Key': process.env.RN_API_KEY, |
There was a problem hiding this comment.
inconsistent header name - use lowercase x-api-key to match the rest of the documentation
| 'X-Api-Key': process.env.RN_API_KEY, | |
| 'x-api-key': process.env.RN_API_KEY, |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| const crypto = require('crypto'); | ||
|
|
||
| // Webhook handler | ||
| app.post('/webhooks', async (req, res) => { |
There was a problem hiding this comment.
app is undefined - the example is missing Express setup
Add setup context before this code:
const express = require('express');
const app = express();
app.use(express.json());| - Check environment (testnet vs mainnet) | ||
| - Ensure API key has required permissions | ||
| - Verify Authorization header format | ||
| - Check that you're using the right header: `X-Api-Key` |
There was a problem hiding this comment.
inconsistent header reference - use lowercase x-api-key to match the rest of the documentation
| - Check that you're using the right header: `X-Api-Key` | |
| - Check that you're using the right header: `x-api-key` |
bassgeta
left a comment
There was a problem hiding this comment.
Looking good, leaner and cleaner 💯
Maybe we could still implement Greptile's recommendations, they aren't that much work

TL;DR
Removed AI-generated content warning and rewrote the getting started guide to focus on practical payment creation with Node.js examples instead of general API testing.
What changed?
RN_prefixed variablesHow to test?
.envfile with the specified API key formatWhy make this change?
The guide was too generic and focused on broad concepts rather than helping developers get started quickly. The new version provides a concrete, working example that developers can run immediately to understand how Request Network payments work, making it more actionable and practical for first-time users.