Skip to content

Commit

Permalink
feature : am removed if null
Browse files Browse the repository at this point in the history
  • Loading branch information
PtPrashantTripathi committed Jun 1, 2022
1 parent 5c2a9ad commit a239117
Show file tree
Hide file tree
Showing 11 changed files with 1,200 additions and 121 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
9 changes: 5 additions & 4 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
##Code of Conduct
## Code of Conduct
All participants of Pt. Prashant Tripathi are expected to abide by our Code of Conduct, both online and during in-person events that are hosted and/or associated with Pt. Prashant Tripathi.

##The Pledge
## The Pledge
In the interest of fostering an open and welcoming environment, we pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

##The Standards
## The Standards
Examples of behaviour that contributes to creating a positive environment include:

- Using welcoming and inclusive language
Expand All @@ -14,6 +14,7 @@ Examples of behaviour that contributes to creating a positive environment includ
- Examples of unacceptable behaviour by participants include:

**Trolling, insulting/derogatory comments, public or private harassment**

- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Not being respectful to reasonable communication boundaries, such as 'leave me alone,' 'go away,' or 'I’m not discussing this with you.'
- Swearing, usage of strong or disturbing language
Expand All @@ -24,5 +25,5 @@ Examples of behaviour that contributes to creating a positive environment includ
- Violations of the Code of Conduct will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Further details of specific enforcement policies may be posted separately.
- We hold the right and responsibility to remove comments or other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any members for other behaviours that they deem inappropriate, threatening, offensive, or harmful.

##Attribution
## Attribution
This Code of Conduct is adapted from [dev.to](https://dev.to/code-of-conduct).
17 changes: 13 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Contributing to Transcriptase

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

- Reporting a bug
Expand All @@ -8,9 +9,11 @@ We love your input! We want to make contributing to this project as easy and tra
- Becoming a maintainer

## We Develop with Github

We use github to host code, to track issues and feature requests, as well as accept pull requests.

## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests

Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:

1. Fork the repo and create your branch from `master`.
Expand All @@ -21,34 +24,40 @@ Pull requests are the best way to propose changes to the codebase (we use [Githu
6. Issue that pull request!

## Any contributions you make will be under the MIT Software License

In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern.

## Report bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues)

We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy!

## Write bug reports with detail, background, and sample code

[This is an example](http://stackoverflow.com/q/12488905/180626) of a bug report I wrote, and I think it's not a bad model. Here's [another example from Craig Hockenberry](http://www.openradar.me/11905408), an app developer whom I greatly respect.

**Great Bug Reports** tend to have:

- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can. [My stackoverflow question](http://stackoverflow.com/q/12488905/180626) includes sample code that *anyone* with a base R setup can run to reproduce what I was seeing
- Give sample code if you can. [My stackoverflow question](http://stackoverflow.com/q/12488905/180626) includes sample code that _anyone_ with a base R setup can run to reproduce what I was seeing
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)

People *love* thorough bug reports. I'm not even kidding.
People _love_ thorough bug reports. I'm not even kidding.

## Use a Consistent Coding Style

I'm again borrowing these from [Facebook's Guidelines](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)

* 2 spaces for indentation rather than tabs
* You can try running `npm run lint` for style unification
- 2 spaces for indentation rather than tabs
- You can try running `npm run lint` for style unification

## License

By contributing, you agree that your contributions will be licensed under its MIT License.

## References

This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,24 @@

Linkpe is a Node.js based API to generate shareable UPI Payment links, just fill your UPI deatils Create shareable links for your UPI ID

## 🚀 Screenshot
## 🚀 Screenshot

![](https://raw.githubusercontent.com/PtPrashantTripathi/linkpe/main/img/screenshot.jpg)


> Try the tool: [LinkPe](https://ptprashanttripathi.github.io/linkpe)
## 🧐 Features

- **Use anywhere, browser**
- *100% Free* 😍
- *100% Secure* 🔐
- *Scan and Pay Support* 👉
- *No Hidden Charges* 🚫
- *Set Fixed Amount* 💰
- *No Data Storage* 🎉
- *Simple Interface* 💥
- *Supports all UPI Apps*
- *Best alternative for payment gateway bcoz they charges 2-5% per transaction*
- **Use anywhere, browser**
- _100% Free_ 😍
- _100% Secure_ 🔐
- _Scan and Pay Support_ 👉
- _No Hidden Charges_ 🚫
- _Set Fixed Amount_ 💰
- _No Data Storage_ 🎉
- _Simple Interface_ 💥
- _Supports all UPI Apps_
- _Best alternative for payment gateway bcoz they charges 2-5% per transaction_

## 🛠️ Installation Steps

Expand Down Expand Up @@ -77,10 +76,9 @@ npm start

🌟 then wallah! You are all set.


## Usage

change {variable} and use as an js api
change {variable} and use as an js api

```js
https://ptprashanttripathi.github.io/linkpe/?pa={UPI ID}&pn={name}&amt={amount}
Expand All @@ -93,6 +91,7 @@ Please contribute using [GitHub Flow](https://guides.github.com/introduction/flo
Please read [`CONTRIBUTING`](CONTRIBUTING.md) for details on our [`CODE OF CONDUCT`](CODE_OF_CONDUCT.md), and the process for submitting pull requests to us.

## 💻 Built with

- [Bootstrap](https://www.getbootstrap.com/)
- [NODE.js](https://www.axios.com)
- [qrious](https://jquery.com/)
Expand Down Expand Up @@ -129,17 +128,17 @@ Please read [`CONTRIBUTING`](CONTRIBUTING.md) for details on our [`CODE OF CONDU
</a>
</td>
</tr>
</table>
</table>

## Questions and Feedback

**Please contact me using one of the following:**

[![](https://img.shields.io/badge/twitter-%231DA1F2.svg?&style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/ptprashant09)
[![](https://img.shields.io/badge/linkedin-%230077B5.svg?&style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/ptprashanttripathi/)
[![](https://img.shields.io/badge/instagram-%23E4405F.svg?&style=for-the-badge&logo=instagram&logoColor=white)](https://www.instagram.com/ptprashanttripathi/)
[![](https://img.shields.io/badge/telegram-%233498DB.svg?&style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/ptprashanttripathi/)
[![](https://img.shields.io/badge/facebook-%231877F2.svg?&style=for-the-badge&logo=facebook&logoColor=white)](https://www.facebook.com/ptprashanttripathi)
[![](https://img.shields.io/badge/twitter-%231DA1F2.svg?&style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/ptprashant09)
[![](https://img.shields.io/badge/linkedin-%230077B5.svg?&style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/ptprashanttripathi/)
[![](https://img.shields.io/badge/instagram-%23E4405F.svg?&style=for-the-badge&logo=instagram&logoColor=white)](https://www.instagram.com/ptprashanttripathi/)
[![](https://img.shields.io/badge/telegram-%233498DB.svg?&style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/ptprashanttripathi/)
[![](https://img.shields.io/badge/facebook-%231877F2.svg?&style=for-the-badge&logo=facebook&logoColor=white)](https://www.facebook.com/ptprashanttripathi)
[![](https://img.shields.io/badge/DEV.TO-%230A0A0A.svg?&style=for-the-badge&logo=dev-dot-to&logoColor=white)](https://dev.to/ptprashanttripathi)

<p align="center">
Expand Down
27 changes: 17 additions & 10 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,38 @@
@import url('https://fonts.googleapis.com/css2?family=Balsamiq+Sans&display=swap');
body{
font-family: 'Balsamiq Sans', cursive;
@import url("https://fonts.googleapis.com/css2?family=Balsamiq+Sans&display=swap");

body {
font-family: "Balsamiq Sans", cursive;
}
.card{

.card {
width: 350px;
}
.text-box{

.text-box {
padding: 10px 20px;
margin: 10px 0;
box-sizing: border-box;
}
.btn{
background-color: #4CAF50;

.btn {
background-color: #4caf50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
cursor: pointer;
font-size: 16px;
}
.btn:hover{

.btn:hover {
background-color: #019031;
padding: 12px 22px;
}
.card-content{

.card-content {
padding: 10px 20px;
}
a{

a {
text-decoration: none;
}
Binary file added favicon.ico
Binary file not shown.
117 changes: 63 additions & 54 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,78 +1,87 @@
<!DOCTYPE html>
<html>

<head>
<!-- Primary Meta Tags -->
<title>LinkPe | UPI LINK Generator</title>
<meta name="title" content="LinkPe | UPI LINK Generator">
<meta name="description" content="LinkPe | UPI LINK Generator - https://github.com/PtPrashantTripathi/linkpe">
<link rel="fluid-icon" href="https://raw.githubusercontent.com/PtPrashantTripathi/linkpe/main/img/linkpe.png" title="PtPrashantTripathi | LinkPe" />
<link rel="fluid-icon" href="https://raw.githubusercontent.com/PtPrashantTripathi/linkpe/main/img/linkpe.png"
title="PtPrashantTripathi | LinkPe" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://ptprashanttripathi.github.io/linkpe">
<meta property="og:title" content="LinkPe | UPI LINK Generator">
<meta property="og:description" content="LinkPe | UPI LINK Generator - https://github.com/PtPrashantTripathi/linkpe">
<meta property="og:description"
content="LinkPe | UPI LINK Generator - https://github.com/PtPrashantTripathi/linkpe">
<meta property="og:image" content="https://raw.githubusercontent.com/PtPrashantTripathi/linkpe/main/img/linkpe.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://ptprashanttripathi.github.io/linkpe">
<meta property="twitter:title" content="LinkPe | UPI LINK Generator">
<meta property="twitter:description" content="LinkPe | UPI LINK Generator - https://github.com/PtPrashantTripathi/linkpe">
<meta property="twitter:image" content="https://raw.githubusercontent.com/PtPrashantTripathi/linkpe/main/img/linkpe.png">
<meta property="twitter:description"
content="LinkPe | UPI LINK Generator - https://github.com/PtPrashantTripathi/linkpe">
<meta property="twitter:image"
content="https://raw.githubusercontent.com/PtPrashantTripathi/linkpe/main/img/linkpe.png">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
<!--Coded by Pt. Prashant Tripathi @ptprashanttripathi on 14th Oct 2020 -->

<body>
<center>
<div class="card">
<div class="card-content">
<a href="linkpe.html?new"><img src="img/logo.png" height="50"></a>
<h5 id="name" style="color: #101010;"></h4>
<canvas id="qr"></canvas>
<div style="margin-top: 2px;">
<a id="linkpe">
<img src="img/upi.png" height="80">
<br>
<button class='btn'>Click here to Pay Now</button>
</a>
<center>
<div class="card">
<div class="card-content">
<a href="linkpe.html?new"><img src="img/logo.png" height="50"></a>
<h5 id="name" style="color: #101010;">
</h4>
<canvas id="qr"></canvas>
<div style="margin-top: 2px;">
<a id="linkpe">
<img src="img/upi.png" height="80">
<br>
<button class='btn'>Click here to Pay Now</button>
</a>
</div>
<br>
<a href="linkpe.html?new" style="color: #777;">Click here to create your own payment link</a>
<br>
<p style="color: #555">
<b>Developed BY : </b>
<a href="https://ptprashanttripathi.github.io" style="color: #999;">Pt. Prashant
Tripathi</a><img src="https://visitor-badge.vercel.app/page/linkpe?color=Blue" />

</p>
</div>
<br>
<a href="linkpe.html?new" style="color: #777;">Click here to create your own payment link</a>
<br>
<p style="color: #555">
<b>Developed BY : </b>
<a href="https://ptprashanttripathi.github.io" style="color: #999;">Pt. Prashant Tripathi</a><img src="https://visitor-badge.vercel.app/page/linkpe?color=Blue"/>

</p>
</div>
</div>
</center>
<script src="qrious/qrious.min.js"></script>
<script>
if (window.location.search.indexOf('pa') > -1) {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const pn = urlParams.get('pn');
const pa = urlParams.get('pa');
var user;
if(pn!=="") user=pn;
else user=pa;
const url= 'upi://pay'+queryString;
document.getElementById("name").innerHTML = "Click on PayNow or Scan Qr and Pay using any UPI Apps To Pay "+user;
document.getElementById("linkpe").href = url;
(function() {
var qr = new QRious({
element: document.getElementById('qr'),
background: '#fff',
foreground: '#000',
size: 200,
level: 'H',
value: url
});
})();
} else {
location.replace("linkpe.html?error");
}
</script>
</center>
<script src="qrious/qrious.min.js"></script>
<script>
if (window.location.search.indexOf('pa') > -1) {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const pn = urlParams.get('pn');
const pa = urlParams.get('pa');
var user;
if (pn !== "") user = pn;
else user = pa;
const url = 'upi://pay' + queryString;
document.getElementById("name").innerHTML = "Click on PayNow or Scan Qr and Pay using any UPI Apps To Pay <br>" + user;
document.getElementById("linkpe").href = url;
(function () {
var qr = new QRious({
element: document.getElementById('qr'),
background: '#fff',
foreground: '#000',
size: 200,
level: 'H',
value: url
});
})();
} else {
location.replace("linkpe.html?error");
}
</script>
</body>
</html>

</html>
Loading

0 comments on commit a239117

Please sign in to comment.