Home Walletix Python API
Post
Cancel

Walletix Python API

Walletix

Walletix project doesn’t exist anymore. 😢

Walletix API For Python Applications

import walletix.py module and start using Walletix services :-)

THIS VERSION WORKS ONLY WITH Python >=2.6

How to use?

Example:

Identify:

1
2
import walletix
w = walletix.Identify(vendorID,apiKey)

Generate Payment Code:

1
gpc = w.generatePaymentCode('1','1','http://www.cyounes.com')

Verify payment:

1
2
3
4
5
6
if gpc.status == 1:
	vp = w.verifyPayment(gpc.result)
	if vp.status == 1:
		print(vp.result)
	else:
		print('Error')

Delete Payment:

1
2
3
4
if gpc.status == 1:
	dp = w.deletePayment(gpc.result)
	if dp.status == 1:
		print(dp.result)

See full example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/python
# -*- coding: utf-8 -*-

import walletix, sys

# Vos Identifiants
vendorID = 'YOUR VENDOR ID'
apiKey = 'YOUR API KEY'

# Il faut identify une fois au debut du programme
w = walletix.Identify(vendorID,apiKey)

gpc = w.generatePaymentCode('1','1','http://www.cyounes.com')
if (gpc.status ==1):
    print('Generated Code Is:', gpc.result)
    print('Payment Verification: ',gpc.result)
    vp = w.verifyPayment(gpc.result)
    if (vp.status==1):
        if(vp.result==1):
            print('successful')
        else:
            print('unsuccessful')
    print('Delete Payment: ',gpc.result)
    dp = w.deletePayment(gpc.result)
    if (dp.status==1):
        if(dp.result==1):
            print('successful')
        else:
            print('unsuccessful')

else:
    print('Erreur lors la génération du code!')

  • [API Documentation][1] [1]:[https://www.walletix.com/documentation-api] “Walletix API Documentation”
This post is licensed under CC BY-NC-SA 4.0 by the author.

Walletix Java API

Termcolor Library