GithubHelp home page GithubHelp logo

paymob-python's Introduction

Paymob Python SDK

The Fast Way To Get Payment Duds Ready, Ever

ForTheBadge powered-by-paymob

Paymob Python is a minimal, straightforward and easy way to config payment intention methods, voiding, refunding and more..

Find the documentation

Installation

pip install --upgrade paymob

Prerequisites

  • Python Requests

Supported languages

  • Python 3.6+

Intention

Paymob Python offers variety of intention methods like create, retrieve and list.

  • Create
    intent = paymob.accept.Intention.create(
        amount="300",
        currency="EGP",
        payment_methods=["card","kiosk"],
        items= [
    {
        "name": "ASC1124",
        "amount": "150",
        "description": "Smart Watch",
        "quantity": "1"
    },
    {
        "name": "ERT6565",
        "amount": "150",
        "description": "Power Bank",
        "quantity": "1"
    }
    ],
        billing_data={
            "apartment": "803",
            "email": "[email protected]",
            "floor": "42",
            "first_name": "Mohamed",
            "street": "Ethan Land",
            "building": "8028",
            "phone_number": "9135210487",
            "shipping_method": "PKG",
            "postal_code": "01898",
            "city": "Jaskolskiburgh",
            "country": "CR",
            "last_name": "Nicolas",
            "state": "Utah",
        },
        customer={"first_name": "misrax", "last_name": "misrax", "email": "[email protected]"},
        delivery_needed=False,
        extras= {
            "name": "test",
            "age": "30"
        },
        special_reference= "Special reference test 4"
    )
    log(
        "Intention Creation Response - {intent}".format(
            intent=intent
        ),
        "info",
    )
    return intent


Example: https://github.com/PaymobAccept/paymob-python/blob/main/paymob-marketplace/app.py

paymob-python's People

Contributors

misrax avatar yusefabdelsattar avatar

Watchers

 avatar  avatar  avatar

Forkers

nourzohry

paymob-python's Issues

Handle SSL verification

SSL verification option to be set on the SDK

  1. Load the certificate with SSL verification equal True
  2. Ignore the certificate wtth SSL verification equal False

SDK to have a key, ssl_verification like paymob.ssl_verficiation=True/False

SDK to have a key ca-bundle like paymob.ca_bundle=PATH

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.