Skip to main content

Paymob FLASH SDK

Project description

Paymob Python SDK

The Fast Way To Get Payment Duds Ready, Ever

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

Find the documentation

Installation

Prerequisites

  • Python Requests

Supported languages

  • Python 3.6+

Intention

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

  • Create
import paymob
from paymob.logging import log

paympb.secret_key= "secret_key"

def secret():
    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": "claudette09@exa.com",
            "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": "misrax@misrax.com"},
        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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paymob-1.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paymob-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file paymob-1.0.0.tar.gz.

File metadata

  • Download URL: paymob-1.0.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for paymob-1.0.0.tar.gz
Algorithm Hash digest
SHA256 28339c153608d81fd3d2173c56747e111748a9dd2554a2da49aa2d8db92a5d30
MD5 7747997d31ef572ec7d1081d618af617
BLAKE2b-256 a49a2112af946a8e6dd059b8162faf307a79f3bb7e63a6166566b4a9a7917385

See more details on using hashes here.

File details

Details for the file paymob-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: paymob-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for paymob-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92124d5c206d0cf44158938632203c78602bcedc6aa64f2b1897315002e09de4
MD5 d6e91f705abc889818b3a4e5dacea43b
BLAKE2b-256 512451a704645109d16fa50354b96fbdb9e7fa34dd1461eca149235d016cabfd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page