https://github.com/hassanakbar/stripe_api_challenge
https://github.com/hassanakbar/stripe_api_challenge
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hassanakbar/stripe_api_challenge
- Owner: HassanAkbar
- Created: 2023-12-18T13:40:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T13:40:19.000Z (over 1 year ago)
- Last Synced: 2025-01-14T13:27:47.182Z (6 months ago)
- Language: Ruby
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Readme
## Introduction
This Rails API application is designed to handle payment processing using the Stripe API. It provides endpoints for creating and managing payments, as well as handling webhooks for events such as successful payments or chargebacks.
## Getting Started
### Prerequisites
* Ruby (version 3.2.2)
* Rails (version 7.0.8)
* Stripe account (sign up at Stripe)### Installation
Clone the repository:
```bash
git clone [email protected]:HassanAkbar/stripe_api_challenge.git
```Install dependencies:
```bash
cd stripe_api_challenge
bundle install
```## Configuration
### Stripe Setup
Create a Stripe account if you don't have one.
Obtain your API keys from the Stripe Dashboard: `Dashboard > Developers > API keys`.
Set your API keys in the Environment Variables```bash
export STRIPE_WEBHOOK_SECRET=your-webhook-secret-key
export STRIPE_API_KEY=your-stripe-api-key
```### Testing
To run tests, use:
```bash
bundle exec rspec
```