Skip to content

PaymobAccept/paymob-java

Folders and files

NameName
Last commit message
Last commit date
Oct 20, 2021
Dec 19, 2021
Aug 25, 2021
Dec 19, 2021
Oct 10, 2021
Nov 2, 2021
Dec 19, 2021
Aug 25, 2021
Aug 25, 2021
Nov 2, 2021
Aug 25, 2021

Repository files navigation

Paymob Java SDK

The Fast Way To Get Payment Duds Ready, Ever

ForTheBadge powered-by-paymob

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

Installation

For apache Netbeans:

At this moment you need to add the jar file manually

You need to click on Libraries directory and press on add JAR/Folder and choose the Jar file then click ok

step2

For Intellij IDE:

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')

Prerequisites

##You need at least Java 8 SE installed on your machine

Supported languages

from java 8 to java 15

Intention

Paymob Java SDK offers verity of intention methods like create, retrieve and list ..

  • Create

    first you need to create a request

    Request request = new Request();

    then set your secretKey

    request.setSecretKey("skl_726d35c37defcffd4edf9d3743228cd5535620be7111xxxxxxxxxxxxxxxxxxxx");

    finally create an intention

    new Intention(request).create(builder.toJson());

    if you need to customise the intention by adding a diffrent base url and diffrent version

    new Intention( request , new Model("https://next-stg.paymobsolutions.com/next/api",1)).create(builder.toJson());

  • List

    create a List

    new Intention(request).List();