GithubHelp home page GithubHelp logo

paymob-java's Introduction

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();

paymob-java's People

Contributors

misrax avatar abdurahman-hassan avatar

Watchers

James Cloos avatar  avatar

paymob-java's Issues

Add customer

resource class: Customer
RESOURCE_PATH = "customer"
methods: retrieve, list

Add pay using tokenized card

resource class PayToken

RESOURCE_PATH = "intention/confirm-moto"

Payload:

            client_secret = "ckl_f0390954c1cbed9ac8e7f86cd2902ea69",
            token = "e29ac6d6676da32f28c7fe5a1a111694978f14ea686915f42fa53e93",
            customer_id= "c26e2788-d367-4789-9b68-c431943b1d9a",
            method= "card-moto",
            payment_method_id= 1599970

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.