Skip to content
WebView Payment SparkJava server integration sample
Branch: master
Clone or download
Javier Garcia
Javier Garcia Initial commit
Latest commit 753263d Oct 26, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main Initial commit Oct 26, 2018
.gitignore Initial commit Oct 26, 2018 Initial commit Oct 26, 2018
pom.xml Initial commit Oct 26, 2018

This repository shows how to implement a merchant server in order to successfully perform a payment by WebView using PayZen Payment Platform.

Table of contents

Getting started

  • Clone the repo: git clone
  • Set your shop data in the file as described in configuration instructions.
  • Run mvn package, to build jar executable
  • Run java -jar inApp-server-1.0-jar-with-dependencies.jar

The application should have and output like this:

INFO org.eclipse.jetty.util.log - Logging initialized @698ms
INFO spark.embeddedserver.jetty.EmbeddedJettyServer - == Spark has ignited ...
INFO spark.embeddedserver.jetty.EmbeddedJettyServer - >> Listening on
INFO org.eclipse.jetty.server.Server - jetty-9.3.6.v20151106
INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@30946381{HTTP/1.1,[http/1.1]}{}
INFO org.eclipse.jetty.server.Server - Started @1065ms

By default the application run on 9090 port. See configuration instructions if you want to change this value.

What's included

|   |-- 
|   |--
|   |--
|   |--
|   |--


Server port can be easily configured via Spark modifying the file.


All the shop configuration data must be set in the file:


merchantSiteId=#Your merchant Id here
merchantTestKey=#Your test certificate here
merchantProdKey=#Your production certificate here

# URL of your payment platform. Some examples of possible values are:
# Payzen ->
# Payzen Germany ->
# Payzen Brasil ->
paymentPlatformUrl=#Your payment platform URL here
You can’t perform that action at this time.