A powerful and secure Payment Gateway API that seamlessly integrates with various payment gateways. empowers merchants to offer secure and reliable payment experiences to their customers
Dependencies that you need to have installed or configured
- .NET SDK
- Stripe Account with API keys (publishable key and secret key).
# Clone the repository
git clone https://github.com/tckiprotich/TrasactEase.git
# Change into the project directory
cd TrasactEase
# Install dependencies
dotnet restore
Before running the application, you need to configure the following environment variables:
export STRIPE_PUBLISHABLE_KEY=your_publishable_key
export STRIPE_SECRET_KEY=your_secret_key
export STRIPE_WEBHOOK_SECRET=your_webhook_secret
export DOMAIN=your_domain
export STATIC_DIR=your_static_directory
Replace your_publishable_key, your_secret_key, your_webhook_secret, your_domain, and your_static_directory with your actual values from Stripe Account.
Cd into the Server
directory
dotnet run
- GET /config: Retrieve the publishable key configuration.
- POST /create-payment-intent: Create a payment intent.
- POST /webhook: Handle webhook events.
This project includes code to handle Stripe webhook events. It listens for events and processes them based on the event type. You can customize the webhook handling logic as needed.
If you'd like to contribute to this project, please follow these guidelines:
- Check for open issues or create a new one.
- Fork the repository and create a new branch for your feature or bug fix.
- Make your changes and submit a pull request with a clear description of what you've done.
This project is licensed under the MIT License - see the LICENSE.md file for details.