Skip to main content

Unoffial geopagos sdk to work with apps like (Viumi, Getnet, OpenPay, Taca Taca, Toque, Sipago...).

Project description

Unofficial Geopagos APPS (Getnet, Viumi...) Python SDK

This sdk provides basic methos to integrate geopagos apps (Getnet, Viumi, OpenPay, Taca Taca, Toque, Sipago, Uala Bis) payment API for a platform to start receiving payments.

Requirements

python3.x
requests

Installation

Run git clone git@github.com:Alvezgr/unofficial-gp-sdk.git

Getting Started

Before you begin, you must request the API credential from your supplier (Getnet, Viumi, OpenPay, Taca Taca, Toque, Sipago, Uala Bis)

Request the your Access Token to the geopagos auth and API url

Simple usage

import geopagos

sdk = geopagos.SDK("ACCESS_TOKEN", "https://api.url.com")

urls = {
    "success": "https://www.mitienda.com/success",
    "failed": "https://www.mitienda.com/failed"
}

shipping =  {
    "name": "Correo Argentino",
    "price": {
        "currency": "032",
        "amount": 450
  }
}
items =  [
  {
      "name": "Lomo con papas",
      "unitPrice": {
          "currency": "032",
          "amount": 10050
      },
      "quantity": 2
  },
]

external_data = "25993"

result = sdk.order().create(
      items,
      urls=urls,
      shipping=shipping,
      external_data=external_data
)
payment = result["response"]

print(payment)

Documentation

Visit apps site for docs:

Check our official code reference to explore all available functionalities.

Tests

Ensure to define

export ACCESS_TOKEN=access_token
export INVALID_ACCESS_TOKEN=invalid_token
export ORDER_ID=and_order_uuid
export API_URL=your_provider_url
pytest tests/

Contributing

All contributions are welcome.

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

geopagos-0.0.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

geopagos-0.0.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file geopagos-0.0.2.tar.gz.

File metadata

  • Download URL: geopagos-0.0.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for geopagos-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4e4bc742fdf7a23cea4a80ca09de9cc02badff286822cdbd71d7486e0a28745c
MD5 09885f4c2a0bcbb8c1cd9f2684377501
BLAKE2b-256 3bdafd00ad802543379088bf40cc246eaf75d5262d8e048b372c4bff4c5a4e03

See more details on using hashes here.

File details

Details for the file geopagos-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: geopagos-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for geopagos-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c56e2231b2c8de67f1f4c732b734244476be37361a5ad682034110a5552622ae
MD5 b5e9fe5b36f35108a4e890c2b336d2dc
BLAKE2b-256 75f63cddb1a8b56ba60d35c675dee055ea35a245ce4a6e2b441c7f6aa49c6b47

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