Skip to main content

No project description provided

Project description

pypi pypi-downloads

Code Wallet Python SDK

The Code Wallet Python SDK is a module that allows Python developers to integrate Code into their applications. Seamlessly start accepting payments with minimal setup and just a few lines of code.

See the documentation for more details.

What is Code?

Code is a mobile wallet app leveraging self-custodial blockchain technology to provide an instant, global, and private payments experience.

Installation

You can install the Code Wallet Python SDK from PyPI:

pip install code-wallet

Usage

Here's a simple example showcasing how to create a payment intent using the Python SDK:

from code_wallet.client.intents import payment_intents

test_data = {
    'destination': "E8otxw1CVX9bfyddKu3ZB3BVLa4VVF9J7CTPdnUwT9jR",
    'amount': 0.05,
    'currency': 'usd',
}

# Create a payment request intent
response = payment_intents.create(test_data)
print("Intent:", response['id'])
print("Client secret:", response['clientSecret']) # Pass this to the frontend

# Verify the intent status
response = payment_intents.getStatus({'intent': id})
status = response.get('status')

Getting Help

If you have any questions or need help integrating Code into your website or application, please reach out to us on Discord or Twitter.

Contributing

For now the best way to contribute is to share feedback on Discord. This will evolve as we continue to build out the platform and open up more ways to contribute.

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

code_wallet-1.0.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

code_wallet-1.0.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file code_wallet-1.0.2.tar.gz.

File metadata

  • Download URL: code_wallet-1.0.2.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for code_wallet-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e762d3f11014c898b9f915d75514b905d89a65ee12592486fa2ae7c69d336044
MD5 1045e84fb2728133a27684b994a1edd1
BLAKE2b-256 ea6d49b9bf9e9e1e7bc14796656adbc763eac6903e1495d290c143c842152c9a

See more details on using hashes here.

File details

Details for the file code_wallet-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: code_wallet-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for code_wallet-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ddc113f79e3b0fd7a40e9c347616d8a13ca05da03d84680d7e7a1ebccec6cb89
MD5 379e2521b40a2b5bce683ff925ec074e
BLAKE2b-256 0d3f7b39375a3cc5ccdd2d7a49e473c07fb76c58d533fec8a9b58263ebd97a9a

See more details on using hashes here.

Supported by

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