New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@intevel/paypal-invoices

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@intevel/paypal-invoices

Inoffical wrapper with useful functions for managing and creating paypal invoices This project is in no way affiliated with, authorized, maintained, sponsored or endorsed by PayPal or any of its affiliates or subsidiaries. This is an independent and unoff

unpublished
latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

paypal-invoices

Inoffical wrapper with useful functions for managing and creating paypal invoices This project is in no way affiliated with, authorized, maintained, sponsored or endorsed by PayPal or any of its affiliates or subsidiaries. This is an independent and unofficial software. Use at your own risk.

Installation

npm i @intevel/paypal-invoices

Create an Invoice:

const InvoiceHandler = require("paypal-invoices");

var invoice = await InvoiceHandler.createInvoice({
	clientID: "-",
	secretID: "-",
	receiver: "mail@receiver.de",
	tax_id: "TAXID",
	details: {
		currency_code: "EUR",
	},
	tax_name: "Sales Tax",
	tax_percent: "7.25",
	tax_calculated_after_discount: false,
	tax_inclusive: true,
	invoicer: {
		businessName: "My Company",
		invoicerEmailAdress: "payment@mycompany.de",
		website: "mycompany.de",
		logoUrl: "myCompanylogo.de",
		additionalNotes: "",
	},
	items: [
		{
			name: "Item#1",
			quantity: "4",
			price: "5.25",
			unit_amount: {
				currency_code: "EUR",
				value: "5.25",
			},
		},
		{
			name: "Item#2",
			quantity: "1",
			price: "2.25",
			unit_amount: {
				currency_code: "EUR",
				value: "2.25",
			},
		},
	],
});
console.log(invoice);

Delete Invoice:

const InvoiceHandler = require("paypal-invoices");

await InvoiceHandler.deleteInvoice("invoiceID", "clientID", "secret");

Get API Token:

const InvoiceHandler = require("paypal-invoices");

var apitoken = await InvoiceHandler.getPayPalToken("clientID", "secret");

Get Invoice Info:

const InvoiceHandler = require("paypal-invoices");

var invoiceInfo = await InvoiceHandler.getInvoiceInfo("invoiceID", "clientID", "secret");
console.log(invoiceInfo);

Generate QR Code for the Invoice:

const InvoiceHandler = require("paypal-invoices");

await InvoiceHandler.generateQRCode("invoiceID", "clientID", "secret");

Feedback

If you have any feedback, please reach out to me at mail@conner-bachmann.de

Keywords

paypal

FAQs

Package last updated on 14 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts