MCPcopy Index your code
hub / github.com/PremPrakashCodes/payment-gateways

github.com/PremPrakashCodes/payment-gateways @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
20 symbols 59 edges 16 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Payment Gateways Demo

This project demonstrates the integration of multiple payment gateways, including Stripe, Razorpay, PayPal, and Coinbase, using Next.js 14. It showcases how to implement these popular payment solutions in a web application.

Live Demo

Check out the live demo here.

Features

  • Multiple Payment Gateways: Integration with Stripe, Razorpay, PayPal, and Coinbase.
  • Next.js 14: Built with the latest features and capabilities of Next.js.
  • User-Friendly UI: Simple and intuitive interface for making payments.
  • Responsive Design: Optimized for all devices, including mobile and desktop.

Installation

To run this project locally, follow these steps:

  1. Clone the repository:

bash git clone https://github.com/PremPrakashCodes/payment-gateways.git

  1. Navigate to the project directory:

bash cd payment-gateways

  1. Install dependencies:

bash npm install

  1. Set up environment variables:

Create a .env.local file in the root directory and add the necessary API keys and configuration settings for the payment gateways.

```plantext NEXT_PUBLIC_BASE_URL=http://localhost:3000

NEXT_PUBLIC_STRIPE_PUBLIC_KEY= STRIPE_SECRET_KEY= STRIPE_WEBHOOK_SECRET=

NEXT_PUBLIC_RAZORPAY_KEY_ID== RAZORPAY_KEY_SECRET=

PAYPAL_CLIENT_ID= PAYPAL_CLIENT_SECRET=

COINBASE_API_KEY= COINBASE_WEBHOOK_SECRET= ```

  1. Run the development server:

bash npm run dev

  1. Open your browser: Visit http://localhost:3000 to see the app in action.

Usage

Select a payment gateway from the available options, enter the required payment details, and proceed with the payment. The demo showcases a straightforward integration process for each gateway.

Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and create a pull request. For major changes, please open an issue to discuss what you'd like to change.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgements

Contact

If you have any questions or feedback, feel free to reach out!

LinkedIn

Extension points exported contracts — how you extend this code

CreateOrdersInput (Interface)
(no doc)
actions/razorpay.ts
PaymentProps (Interface)
(no doc)
app/payment/page.tsx

Core symbols most depended-on inside this repo

createOrders
called by 1
actions/razorpay.ts
verifyPayment
called by 1
actions/razorpay.ts
createCheckoutSession
called by 1
actions/stripe.ts
createCharge
called by 1
actions/coinbase.ts
createPayment
called by 1
actions/paypal.ts
Home
called by 0
app/page.tsx
RootLayout
called by 0
app/layout.tsx
Paypal
called by 0
app/paypal/page.tsx

Shape

Function 18
Interface 2

Languages

TypeScript100%

Modules by API surface

actions/razorpay.ts3 symbols
app/stripe/page.tsx2 symbols
app/razorpay/page.tsx2 symbols
app/paypal/page.tsx2 symbols
app/payment/page.tsx2 symbols
app/coinbase/page.tsx2 symbols
app/webhooks/stripe/route.ts1 symbols
app/webhooks/coinbase/route.ts1 symbols
app/page.tsx1 symbols
app/layout.tsx1 symbols
actions/stripe.ts1 symbols
actions/paypal.ts1 symbols

For agents

$ claude mcp add payment-gateways \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact