public function testTransferRequestMappedAccountTest() { $this->transferRequestMapped = new TransferRequest(); $this->transferRequestMapped->setLocalDate("1212"); $this->transferRequestMapped->setLocalTime("161222"); $this->transferRequestMapped->setTransactionReference("4000000001010102042"); $this->transferRequestMapped->setSenderName("John Doe"); $fundingMapped = new FundingMapped(); $fundingMapped->setSubscriberId("*****@*****.**"); $fundingMapped->setSubscriberType("EMAIL_ADDRESS"); $fundingMapped->setSubscriberAlias("My Debit Card"); $this->transferRequestMapped->setFundingMapped($fundingMapped); $this->transferRequestMapped->setFundingUCAF("MjBjaGFyYWN0ZXJqdW5rVUNBRjU=1111"); $this->transferRequestMapped->setFundingMasterCardAssignedId(123456); $fundingAmount = new FundingAmount(); $fundingAmount->setValue(15000); $fundingAmount->setCurrency(840); $this->transferRequestMapped->setFundingAmount($fundingAmount); $this->transferRequestMapped->setReceiverName("Jose Lopez"); $receiverAddress = new ReceiverAddress(); $receiverAddress->setLine1("Pueblo Street"); $receiverAddress->setLine2("PO BOX 12"); $receiverAddress->setCity("El PASO"); $receiverAddress->setCountrySubdivision("TX"); $receiverAddress->setPostalCode(79906); $receiverAddress->setCountry("USA"); $this->transferRequestMapped->setReceiverAddress($receiverAddress); $this->transferRequestMapped->setReceiverPhone("1800639426"); $receivingCard = new ReceivingCard(); $receivingCard->setAccountNumber("5184680430000006"); $this->transferRequestMapped->setReceivingCard($receivingCard); $receivingAmount = new ReceivingAmount(); $receivingAmount->setValue(182206); $receivingAmount->setCurrency(484); $this->transferRequestMapped->setReceivingAmount($receivingAmount); $this->transferRequestMapped->setChannel("W"); $this->transferRequestMapped->setUCAFSupport("false"); $this->transferRequestMapped->setICA("009674"); $this->transferRequestMapped->setProcessorId("9000000442"); $this->transferRequestMapped->setRoutingAndTransitNumber(990442082); $cardAcceptor = new CardAcceptor(); $cardAcceptor->setName("My Local Bank"); $cardAcceptor->setCity("Saint Louis"); $cardAcceptor->setState("MO"); $cardAcceptor->setPostalCode(63101); $cardAcceptor->setCountry("USA"); $this->transferRequestMapped->setCardAcceptor($cardAcceptor); $this->transferRequestMapped->setTransactionDesc("P2P"); $this->transferRequestMapped->setMerchantId(123456); $this->transfer = $this->transferService->getTransfer($this->transferRequestMapped); $this->assertTrue($this->transfer != null); $this->assertTrue($this->transfer->getTransactionReference() > 0); $this->assertTrue($this->transfer->getTransactionHistory() != null); $this->assertTrue($this->transfer->getTransactionHistory()->getTransaction(0)->getResponse()->getCode() == 00); $this->assertTrue($this->transfer->getTransactionHistory()->getTransaction(1)->getResponse()->getCode() == 00); }