payment

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2016 License: ISC Imports: 16 Imported by: 0

Documentation

Overview

access to payment functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitcoinFinalise

func BitcoinFinalise() error

finialise - stop all background tasks also calls the internal finalisePayment()

func BitcoinInitialise

func BitcoinInitialise(configuration configuration.BitcoinAccess) error

initialise for bitcoin payments also calls the internal initialisePayment() and register()

Note fee is a string value and is converted to Satoshis to avoid rounding errors

func CheckPaid

func CheckPaid(txId transaction.Link) bool

check if paid and set paid flag

returns true on transition from unpaid to paid

func MinerAddresses

func MinerAddresses() []block.MinerAddress

for miner routines to get this nodes addresses

func Pay

func Pay(currency string, paymentData []byte, count int) (string, error)

make a payment - primary payment API detects currency and makes payment

func PaymentAddresses

func PaymentAddresses() []block.MinerAddress

for RPC to get payment addresses - if any

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL