Skip to content

swytchcodehq/Create-And-Send-Payment-Langgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create and Send Payment — LangGraph + Swytchcode

Automates payment link creation and customer notification:

  1. Generates a Stripe payment link for $99
  2. Emails the link to the customer via Resend

Built with LangGraph and Swytchcode.


Prerequisites

  • Python 3.9+

  • Swytchcode CLI: install with the verified script for your platform:

    npm install -g swytchcode

Setup

  1. Clone the repo:
    git clone https://github.com/swytchcodehq/Create-And-Send-Payment-Langgraph.git
    cd Create-And-Send-Payment-Langgraph
  2. Install dependencies:
    pip install -r requirements.txt
  3. Copy the example env file and fill in your keys:
    cp .env.example .env

Run

python main.py

Canonical IDs Used

Service Canonical ID
Stripe prices.price.create
Resend resend.email.create
Stripe stripe.payment_link.create

Part of the Swytchcode demo collection

Runnable LangGraph + Swytchcode examples:

License

MIT. See LICENSE.

About

LangGraph agent: create a Stripe payment link and email it via Resend

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages