Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pix-charge

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pix-charge - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

dist/src/index.js

@@ -78,4 +78,2 @@ "use strict";

var locationF = location.replace('https://', '');
console.log(merchantNameF, locationF, amountF);
console.log(merchantNameF.length, locationF.length, amountF.length);
// Check for input problems

@@ -82,0 +80,0 @@ if (merchantNameF.length < 1 || locationF.length < 1 || amountF.length < 1) {

2

package.json
{
"name": "pix-charge",
"version": "1.0.3",
"version": "1.0.4",
"description": "Library to generate BCB's Pix Payment BR Code",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

@@ -8,3 +8,3 @@ # pix-charge

![pixLogo](https://cdn-std.droplr.net/files/acc_519625/Ql2F31)
![pixLogo](https://cdn-std.droplr.net/files/acc_519625/NU7Nzk)

@@ -26,4 +26,5 @@ Library to generate BCB's Pix Payment BR Code 💸

```js
import { dinamicPix, staticPix } from "pix-charge";
import { staticPix } from "pix-charge";
// Payer will set transfer value
let brCode = staticPix({

@@ -33,2 +34,17 @@ merchantKey: "gjmolter.1997@gmail.com",

});
// Transfer value is pre-defined.
let brCodeWithValue = staticPix({
merchantKey: "gjmolter.1997@gmail.com",
merchantName: "Gabriel Molter",
amount: 1.99,
});
// Transfer value is pre-defined and has charge description
let brCodeWithValue = staticPix({
merchantKey: "gjmolter.1997@gmail.com",
merchantName: "Gabriel Molter",
amount: 1.99,
description: "Candy Bar", // Will show up as a label describing to the payer what they are being charged for
});
```

@@ -86,5 +102,5 @@

`staticPix({ object })`. object:
`staticPix({ object })`:
| param | type | required |
| object key | type | required |
| ------------ | ------- | -------- |

@@ -101,9 +117,9 @@ | merchantKey | string | ✅ |

`dinamicPix({ object })`. object:
`dinamicPix({ object })`:
| param | type | required |
| object key | type | required |
| ------------ | ------- | -------- |
| merchantName | string | ✅ |
| location | string | ✅ |
| amount | number | ❌ |
| amount | number | ✅ |
| merchantCity | string | ❌ |

@@ -110,0 +126,0 @@ | merchantCep | string | ❌ |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc