return paymentInfo;
}
if (BankAccountPayment.class.getName().equals(this.type)) {
BankAccountPayment paymentInfo = (BankAccountPayment) securePaymentInfoService.create(PaymentType.BANK_ACCOUNT);
paymentInfo.setId(this.id);
paymentInfo.setReferenceNumber(this.referenceNumber);
paymentInfo.setAccountNumber(this.accountNumber);
paymentInfo.setRoutingNumber(this.routingNumber);
return paymentInfo;
}
if (GiftCardPayment.class.getName().equals(this.type)) {
GiftCardPayment paymentInfo = (GiftCardPayment) securePaymentInfoService.create(PaymentType.GIFT_CARD);
paymentInfo.setId(this.id);
paymentInfo.setReferenceNumber(this.referenceNumber);
paymentInfo.setPan(this.pan);
paymentInfo.setPin(this.pin);
return paymentInfo;
}
return null;