🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

src.techknowlogick.com/paypal-fee-computer

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

src.techknowlogick.com/paypal-fee-computer

Go Modules
Version
v0.0.0-20191219033417-d6e9a38af6b3
Version published
Created
Source

go-paypal-fee-computer

Compute paypal fees, see list of fees here: https://www.paypal.com/en/webapps/mpp/paypal-fees

Example

package main

import (
	"fmt"
	"src.techknowlogick.com/paypal-fee-computer"
)

func main() {
	sending := 5.00
	transaction_percentage_fee := 2.9
	fixed_fee := 0.3
	total, _ := paypal_fee_computer.Compute(sending, transaction_percentage_fee, fixed_fee)

	fmt.Printf("To send $%.2f it will cost you $%.2f", sending, total)
	// output: To send $5.00 it will cost you $5.46

}

Prior Art

http://strk.kbt.io/utils/paypalfeecomputer.html

FAQs

Package last updated on 19 Dec 2019

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