HPCIDemoJava v1.0 Jan 7 2016
HostedPCI Demo App Includes Web Checkout (iFrame) and Phone Session (IVR) services.
What is it?
HPCIDemo is a small app that will help customers implement the HostedPCI API when they want to use the HostedPCI Web Checkout and Phone Session services. The HostedPCI Demo App is a small tool to help HostedPCI customers visualize the power, potential and how HostedPCI can help them become PCI compliant as affordable as possible and as easy as possible. Our motto is, your vision, our reality. By installing HostedPCI Demo App you will see what it can do for you, how easy it is to implement it on your eCommerce site or call center and will show you how to do it if you get stuck implementing it.
What does this service do?
The HostedPCI Phone Session service designed to help companies who need to take credit card information from customers over the phone. For example, insurance call centers who want to become PCI compliant. The HostedPCI Web Checkout service is designed to help companies become PCI compliant with their eCommerce site while being customizeable for any situation.
How does it work?
- eCommerce loads the page.
- Page requests a new iframe from HostedPCI.
- HostedPCI verifies the website and webpage are correct.
- HostedPCI sends the iframe to the eCommerce page.
- User fills the payment form and clicks “Submit”.
- Iframe is being sent back to HostedPCI for tokenization of the credit card.
- Token is delivered back to the form and populates all the required hidden fields (CC, CVV and BIN numbers) in the form.
- eCommerce form submits payment request with credit card token, cvv token, expiry date and amount.
- HostedPCI submits payment request with real credit card, real cvv, expiry date and amount.
- HostedPCI gets the payment response from the bank.
- HostedPCI sends the response along with other information back to the eCommerce site.
- eCommerce page can then collect the response with all the information and display it back to the user.
- The HPCIDemoJava app makes a call to the HostedPCI server and creates a session.
- The CSR (Customer Support Representitive) makes a 3 way phone call and enters the session key number.
- The IVR asks the customer to punch in his credit card and cvv numbers.
- The IVR verifies the information.
- If everything checks out, the IVR returns a token back to the HPCIDemoJava app.
- The CSR takes all other required information from the client (name, address, phone number) and fills in the form and submits.
- The application takes in the token and all other required information and calls HostedPCI to process payment.
- The application reads back the answer from HostedPCI and displays it to the CSR.
Version 1.0, Jan 7 2016
Java JDK 8 Jquery 2.1.1 Bootstrap 3.2 Jetty 8.1.2 Browser
- Place the "HostedPCIConfig.xml" file inside the user home directory. There are 2 methods of running it: Using RunJettyRun plugin within Eclipse, or using JettyRunner.jar and HPCIDemoJava.jar from terminal/command prompt.
- Set RunJettyRun to be assosiated with HPCIDemoJava and set it to 8799 port (If you want a different port you need to change the port in webCheckoutForm.jsp too).
- Run using Jetty.
- Open your browser and go to http://localhost:8799/home.jsp and choose one of the services you want to try.
Using Jetty Runner:
- Open the terminal/command prompt and go to the path_to_HPCIDemoJava/war folder.
- Type “java -jar jetty-runner.jar --stats unsecure --log yyyy_mm_dd-requests.log --port 8799 --out yyyy_mm_dd-output.txt HPCIDemoJava.war”
- If everything went well, you should see something like this and a blinking cursor afterwards: 2016-01-07 10:33:36.843:INFO::main: Logging initialized @71ms 2016-01-07 10:33:36.848:INFO:oejr.Runner:main: Runner 2016-01-07 10:33:36.850:INFO:oejr.Runner:main: Redirecting stderr/stdout to yyyy_mm_dd-output.txt
- Open any browser and type in http://localhost:8799/home.jsp and choose one of the services you want to try.
How to use the Web Checkout app:
- Fill in the payment form.
- You can use VISA test number 4111-1111-1111-1111 cvv: any 3 digits.
- Expiry date must be a date in the present or date in the future.
- Press on Process Payment button.
- You will be sent to the confirmation page with the transaction restults.
How to use the Phone Session app:
- Create a new session, call the HostedPCI IVR number and enter the session key.
- Follow the instructions by the IVR (you can enter a test credit card number 4111-1111-1111-1111).
- If everything checks out, when you click on the Update Progress button, the form will now update with the credit card token that was given by the IVR.
- Fill the rest of the form (MM/YY expiration has to be a future date).
- Press the Process Payment button.
- You will see the results of the payment process at the bottom of the page.