How to Generate Payment Link Codes with Copilot

Create payment QR codes from your IDE with Copilot and ToolRouter.

Tool
QR Code Generator icon
QR Code Generator

Copilot generates QR codes from within your development environment and embeds them directly in your project artifacts. Create codes for your application, documentation, email templates, or invoice systems, then wire them into your build pipeline so QR codes are regenerated automatically when URLs or product data change. This workflow treats QR codes as code-managed assets rather than manually created images, ensuring they stay in sync with the data they represent across deployments.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the QR Code Generator tool:

  1. In Copilot Chat: "Generate a QR code for our checkout URL using qr-code-generator"
  2. Copilot generates the payment QR code
  3. Embed the code in your invoice template or checkout page
  4. Ask Copilot to add scan-to-pay functionality to your point-of-sale display

Example Prompt

Try this with Copilot using the QR Code Generator tool
Generate a QR code for our Stripe checkout link and embed it in the invoice HTML template at templates/invoice.html.

Tips

  • Copilot can embed payment QR codes directly in invoice templates
  • Use for generating QR codes programmatically in billing systems
  • Ask Copilot to add the QR code to your pricing page for mobile-first checkout