mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add option in ajax request in send coins transaction for auto-sign enable/disable
This commit is contained in:
parent
5c77a9871b
commit
16af5409fd
@ -1 +1 @@
|
|||||||
Subproject commit 164e1e715bd773814fba10dade7a4b3aff65d0ed
|
Subproject commit 7ebc7909eaf9e74ca81f561b0aac64797c3d0112
|
||||||
@ -73,11 +73,12 @@ Normally a forwarding to login-server check transactions side is neccessary to m
|
|||||||
|
|
||||||
POST http://localhost/transaction-send-coins/ajaxCreate
|
POST http://localhost/transaction-send-coins/ajaxCreate
|
||||||
```json
|
```json
|
||||||
{"session_id" : -127182, "amount": 2000000, "email": "maxim.mustermann@gmail.com", "memo":"Thank you :)"}
|
{"session_id" : -127182, "amount": 2000000, "email": "maxim.mustermann@gmail.com", "memo":"Thank you :)", "auto_sign": true}
|
||||||
```
|
```
|
||||||
- amout: amount to transfer, 2000000 = 200,00 GDD
|
- amout: amount to transfer, 2000000 = 200,00 GDD
|
||||||
- email: receiver email address, must be differ from user email
|
- email: receiver email address, must be differ from user email
|
||||||
- memo: Details about transaction
|
- memo: Details about transaction
|
||||||
|
- auto_sign: set to true to directly sign transaction if unsecure.allow_auto_sign_transactions = 1 is set
|
||||||
|
|
||||||
return if everything is ok:
|
return if everything is ok:
|
||||||
```json
|
```json
|
||||||
@ -85,8 +86,11 @@ return if everything is ok:
|
|||||||
```
|
```
|
||||||
- timeUsed: time used for getting data from db in seconds, only for analyse backend performance
|
- timeUsed: time used for getting data from db in seconds, only for analyse backend performance
|
||||||
|
|
||||||
Than the transaction was created on community server, send to login-server, signed (if unsecure.allow_auto_sign_transactions = 1)
|
Than the transaction was created on community server, send to login-server, signed (if unsecure.allow_auto_sign_transactions = 1 and auto_sign = true)
|
||||||
and send back to community server and put into db.
|
and send back to community server and put into db.
|
||||||
After you get this answear you see the new transaction if you list transactions or call for the balance
|
After you get this answear you see the new transaction if you list transactions or call for the balance.
|
||||||
|
|
||||||
|
Without auto-sign the transaction is pending on login-server and waits for the user to review it at
|
||||||
|
http://localhost/account/checkTransactions
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 98d52617c896a1a50c0a2bab2305eb6e890e882b
|
Subproject commit 9b9115290c8d2ead756d64b70ae63a6571aa4693
|
||||||
Loading…
x
Reference in New Issue
Block a user