build method

  1. @override
PaymentRequest build()
override

Implementation

@override
PaymentRequest build() {
  PaymentData data = this.buildData()
    ..cardNo = this._cardNo
    ..expiryMonth = this.expiryMonth
    ..expiryYear = this.expiryYear
    ..securityCode = this.securityCode
    ..pin = this.pin
    ..cardBank = this._bank
    ..cardCountry = this._country
    ..cardTokenize = _tokenize
    ..interestType = this.installmentInterestType
    ..installmentPeriod = this.installmentPeriod;

  PaymentRequest request = PaymentRequest()
    ..code = _paymentCode
    ..data = data;
  return request;
}