oozman / paymongo-link

A simple API that generates a paymongo link.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paymongo Link

A simple API that generates a paymongo link.

Usage


  1. Build this container by running this command:
docker build --tag paymongo-link .
  1. After building the container, you can run it as follow:
bash docker run -p 8000:80 paymongo-link

Request

Generate a paymongo link:

POST http://localhost/links

Params:

  • amount - Total amount in cents. eg: P100 => 10000 cents
  • description - The description for this transaction
  • other_info - Other info about the transaction.

Response:

{
	"data": {
		"id": "ZGoMeEs",
		"type": "transaction",
		"amount": 10000,
		"url": "https://pm.link/xxxx/ZGoMeEs"
	}
}

About

A simple API that generates a paymongo link.


Languages

Language:JavaScript 96.9%Language:Dockerfile 3.1%