build method

  1. @override
PaymentRequest build()
override

Implementation

@override
PaymentRequest build() {
  PaymentData data = this.buildData()
    ..token = this._cardToken
    ..expiryMonth = this.expiryMonth
    ..expiryYear = this.expiryYear
    ..securityCode = this.securityCode
    ..pin = this.pin
    ..interestType = this.installmentInterestType
    ..installmentPeriod = this.installmentPeriod;

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