fo0 / paypal-springboot

paypal payment sample using spring boot, paypal java SDK, thymeleaf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paypal REST API Payment using Spring Boot

This is sample project how to implement paypal rest api to spring boot web application, if you see pom.xml it will show you that it's using spring boot 1.3.0 starter web, using thymeleaf as template engine, and Paypal Java SDK.

Prerequisites:

Usage

to run this sample, please at first crete paypal account and register your apps to http://developer.paypal.com, get your app configuration and then change paypal configuration in src/main/resource/application.properties of your project

	paypal.mode=sandbox
	paypal.client.app=xxxxxxxxxxxxxxxxxxYOUR_CLIENT_IDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	paypal.client.secret=xxxxxxxxxxxxxxxxxxYOUR_CLIENT_SECRETxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Then run it using maven :

	mvn spring-boot:run

Test in your browser :

	http://localhost:8080

About

paypal payment sample using spring boot, paypal java SDK, thymeleaf


Languages

Language:Java 93.3%Language:HTML 6.7%