We are migrating to Vantiv from a Moneris online payment system.
Vantiv has a similar setup with an iFrame that Moneris (I believe they called theirs "Hosted Tokenization") did. I believe with the Vantiv solution we would use Vantiv via the iFrame to collect the credit card information from the user and then Vantiv will return a registrationId back to us that we will use to charge their credit card.
From looking at your java api, if I want to use that registration id to make a sale, would I first make a call to PaypageRigistrationIdToToken.java with the registrationId so I can get a token and then call SaleWithToken.java to make the sale? I'm not sure if there is a way to make one call with the registrationID to make the sale. Also, is this spelled out in some documentation somewhere? Seems like I have to dig around and try to put the pieces together.
Also, I see references to calling an endpoint with xml. Is that the preferred method.
You can submit the paypageRegistrationId (i.e., the Low Value Token) in place of the card in an Authorization or Sale transaction. I am not a coder, but have attempted to create a Sale example below. Please forgive me if I made any syntax errors, but I think you'll get the idea, or at least hope so. :O)
Sale sale = new Sale();
sale.setOrderId("1");
sale.setAmount(10010L);
sale.setOrderSource(OrderSourceType.ECOMMERCE);
Contact billToAddress = new Contact();
billToAddress.setName("John Smith");
billToAddress.setAddressLine1("1 Main St.");
billToAddress.setCity("Burlington");
billToAddress.setState("MA");
billToAddress.setCountry(CountryTypeEnum.US);
billToAddress.setZip("01803-3747");
sale.setBillToAddress(billToAddress);
CardPaypageType paypage = new CardPaypageType()
paypage.setPaypageRegistrationId("123456789012345678901324567890abcdefghi");
paypage.setExpDate("0112");
paypage.setCardValidationNum("349");
paypage.setType(MethodOfPaymentTypeEnum.VI);
sale.setPaypage(paypage)
sale.setId("id");