Class: Payment

bip70.Payment

new Payment(optionsnullable)

Represents a BIP70 payment.

Parameters:
Name Type Attributes Description
options Object <nullable>
Properties:
Name Type Description
merchantData Buffer
transactions Array:.<TX:>
refundTo Array:.<Output:>
memo String | null
Source:

Methods

(static) fromOptions(options) → {Payment}

Instantiate payment from options.

Parameters:
Name Type Description
options Object
Source:
Returns:
Type
Payment

(static) fromRaw(data) → {Payment}

Instantiate payment from serialized data.

Parameters:
Name Type Description
data Buffer
Source:
Returns:
Type
Payment

(private) fromOptions(options) → {Payment}

Inject properties from options.

Parameters:
Name Type Description
options Object
Source:
Returns:
Type
Payment

(private) fromRaw(data) → {Payment}

Inject properties from serialized data.

Parameters:
Name Type Description
data Buffer
Source:
Returns:
Type
Payment

toRaw() → {Buffer}

Serialize the payment (protobuf).

Source:
Returns:
Type
Buffer