Paymob Java SDK provides smooth functions to integrate with Paymob readily it's a minimal, straightforward and easy way to implement the payment intention methods, voiding, refunding and more..
Find our docs
You need to click on Libraries
directory and press on add JAR/Folder
and choose the Jar file then click ok
You need to Create a lib folder and move the jar file into it then you need to add this line in the build.gradle file:
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
##You need at least Java 8 SE installed on your machine
from java 8 to java 15
Paymob Java SDK offers verity of intention methods like create, retrieve and list ..
-
Create
Request request = new Request();
request.setSecretKey("skl_726d35c37defcffd4edf9d3743228cd5535620be7111xxxxxxxxxxxxxxxxxxxx");
new Intention(request).create(builder.toJson());
new Intention( request , new Model("https://next-stg.paymobsolutions.com/next/api",1)).create(builder.toJson());
-
List
new Intention(request).List();