1.0.0 • Published 2 years ago

medusa-payment-paytm v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Medusa Payment Paytm

Medusa Hackathon 2022 - medusa-payment-paytm Add Paytm as a Payment Provider.

Demo Link

About

Description

This Plugin enables to use Paytm Payment gateway solution in medusa website to simplify payment from customers. Customers can choose to pay from any credit/debit card, UPI, Netbanking, Paytm Wallet and EMI.

Participants

NameGithub HandleDiscord Handle
Gyanesh SinghGyaniRoman23gyaniroman23#5220
Saurabh Duttasaurabh73saurabh73#7660

Set up Project

Prerequisites

  • Setup Medusa-Server
  • You must have a merchant account on Paytm’s Merchant Dashboard. If you are a new merchant and want to create your account. Create Account
  • Get Merchant Credentials Get Merchant Credentials
  • Webhook Configuration Webhook Configuration Set Payment Notifcation URL to <medusa-server-url>/paytm/hooks

Install

  • Install Plugin
    npm install medusa-payment-paytm
  • Add to medusa-config.js
    {
      resolve: `medusa-payment-paytm`,
      options: {
        "merchant_id": "<PAYTM Merchant ID>",
        "merchant_key": "<PAYTM Merchant KEY>",
        "test_mode": "<true or false>", // Optional (Default to false)
        "callback_url": "<Webhook URL>", // Payment Notifcation URL
      },
    }
  • Enable paytm as a payment provider in Medusa admin settings (for Region IN)

Resources