src/bip70/payment.js
function Payment(options) {
  if (!(this instanceof Payment))
    return new Payment(options);

  this.merchantData = null;
  this.transactions = [];
  this.refundTo = [];
  this.memo = null;

  if (options)
    this.fromOptions(options);
}
function Payment(options) {
  if (!(this instanceof Payment))
    return new Payment(options);

  this.merchantData = null;
  this.transactions = [];
  this.refundTo = [];
  this.memo = null;

  if (options)
    this.fromOptions(options);
}
function Payment ( options ) { if ( ! ( this instanceof Payment ) ) return new Payment ( options ) ; this . merchantData = null ; this . transactions = [ ] ; this . refundTo = [ ] ; this . memo = null ; if ( options ) this . fromOptions ( options ) ; }
Represents a BIP70 payment.
@alias module:bip70.Payment
@constructor
@param {Object?} options
@property {Buffer} merchantData
@property {TX[]} transactions
@property {Output[]} refundTo
@property {String|null} memo
Represents a BIP70 payment .