Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

ApPythonSdk
===================================

Alternative Payments python libary sdk. Accept local payments from all over the world

Installation
-----

Install gem, using pip:

$ pip install ap-python-sdk

In your initializing files add line:

import ap_python_sdk

ap_python_sdk.api_secret_key = 'Fill it with your own secret key.'
ap_python_sdk.api_public_key = 'Fill it with your own public key.'


Usage
-----

For usage and examples check `http://www.alternativepayments.com/support/api/` or sample application on our open-source repo `https://github.com/AlternativePayments/ap-python-sdk`
Example of creating new customer:

customer = Customer.create(
{
'firstName': 'John',
'lastName': 'Doe',
'email': 'tempmail@mail.com',
'address': 'Rutledge Ave 409',
'city': 'Folsom',
'zip': '19033',
'country': 'US',
'state': 'PA',
'phone': '55555555555',
'created': '2016-03-24T15:19:10.7800694Z'
}
);

Accessing object's attributes:

customer.firstName
=> John

Same goes for complex objects like Transaction.
Create SEPA transaction:

customer = Customer(
id='cus_bd838e3611d34d598',
firstName='John',
lastName='Doe',
email='john@doe.com',
country='DE'
)

payment = Payment(
paymentOption='SEPA',
holder='John Doe',
iban='BE88271080782541'
)

return Transaction.create({
'customer': customer,
'payment': payment,
'amount': 500,
'currency': 'EUR',
'description': 'test sepa php sdk',
'merchantPassThruData': 'test_sepa_123',
'ipAddress': '127.0.0.1'
})

Access customer:

transaction.customer.firstName

Development
-----

To release a new version, update the version number in `version.py`, and then run `python setup.py sdist bdist_wheel upload -r https://pypi.python.org/pypi` to create a new version of library and deploy it to `https://pypi.python.org/pypi/ap_python_sdk`

Contributing
-----

1. Fork it ( https://github.com/AlternativePayments/ap-python-sdk/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request


Release files for ap_python_sdk 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Built distributions (wheels)

Table of built distributions (wheels) for ap_python_sdk 0.1.3
File Interpreter ABI Platform
ap_python_sdk-0.1.3-py3-none-any.whl Python 3 none any Details
ap_python_sdk-0.1.3-py2-none-any.whl Python 2 none any Details

Total release size: 24.9 kB

Release files / ap_python_sdk-0.1.3-py3-none-any.whl

Download URL ap_python_sdk-0.1.3-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ca830299d7a1522e9879f13cff0488790e1a4893936161b8b8686178962a2a6
BLAKE2b-256 checksum
How to use checksums
98b3f91c7da90ed9564b76a724d9da6548b8b3355e63e33398ace39c8afdcde1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ap_python_sdk-0.1.3-py2-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL ap_python_sdk-0.1.3-py2-none-any.whl
Size 12.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
dd3342d7a52d89403721e405121953071c69a1607e189b791416d2d1fb36c687
BLAKE2b-256 checksum
How to use checksums
c514a85e53bc4219d654dc27cd6ad287d5cae34dc609f58497f83c2c9df84b55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.0.6

3 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page