2 ways works !
This commit is contained in:
parent
7b8c0c82bc
commit
5eda07bd68
|
@ -28,7 +28,7 @@ def ProceedPaiement():
|
|||
comment = str(commentEntry.get())
|
||||
print("Paiement en cours ... " + recipient)
|
||||
returnGen = sendGenDoc(recipient, amount, comment)
|
||||
checkTXDoc(returnGen)
|
||||
checkTXDoc(returnGen, recipient, amount, comment)
|
||||
returnSigned = signDoc(returnGen)
|
||||
sendTXDoc(returnSigned)
|
||||
|
||||
|
|
5
pay.py
5
pay.py
|
@ -62,7 +62,7 @@ def sendGenDoc(recipient, amount, comment):
|
|||
|
||||
|
||||
# Check document
|
||||
def checkTXDoc(txDoc):
|
||||
def checkTXDoc(txDoc, recipient, amount, comment):
|
||||
docList = txDoc.splitlines()
|
||||
for i, line in enumerate(docList):
|
||||
if re.search("Issuers:", line):
|
||||
|
@ -121,7 +121,8 @@ def sendTXDoc(signedDoc):
|
|||
# Execute workflow
|
||||
if not graphic:
|
||||
returnGen = sendGenDoc(recipient, amount, comment)
|
||||
docIsOK = checkTXDoc(returnGen)
|
||||
docIsOK = checkTXDoc(returnGen, recipient, amount, comment)
|
||||
if docIsOK:
|
||||
returnSigned = signDoc(returnGen)
|
||||
sendTXDoc(returnSigned)
|
||||
|
||||
|
|
Reference in New Issue