mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
make real subscription
This commit is contained in:
parent
06bb0b39a8
commit
2612ab52e5
1 changed files with 5 additions and 7 deletions
|
@ -514,9 +514,9 @@ Try again later, enter another address or cancel.
|
||||||
d = Dialog(dialog="dialog",autowidgetsize=True)
|
d = Dialog(dialog="dialog",autowidgetsize=True)
|
||||||
d.set_background_title("IP2TOR Bridge Offer Details: {0}".format(shopurl))
|
d.set_background_title("IP2TOR Bridge Offer Details: {0}".format(shopurl))
|
||||||
text='''
|
text='''
|
||||||
The subscription will renew every {0} hours.
|
The subscription would renew every {0} hours.
|
||||||
The first time it will cost: {1} sats
|
The first time it would cost: {1} sats
|
||||||
Every next time it will cost: {2} sats
|
Every next time it would cost: {2} sats
|
||||||
|
|
||||||
If you AGREE you will subscribe to this service.
|
If you AGREE you will subscribe to this service.
|
||||||
You will get a port on the IP {3} that will
|
You will get a port on the IP {3} that will
|
||||||
|
@ -542,7 +542,7 @@ More information on the service you can find under:
|
||||||
host['terms_of_service'],
|
host['terms_of_service'],
|
||||||
host['terms_of_service_url'])
|
host['terms_of_service_url'])
|
||||||
|
|
||||||
code = d.msgbox(text, title=host['name'], ok_label="Back", extra_button=True, extra_label="AGREE" ,width=60, height=30)
|
code = d.msgbox(text, title=host['name'], ok_label="Back", extra_button=True, extra_label="AGREE" ,width=70, height=30)
|
||||||
|
|
||||||
# if user AGREED break loop and continue with selected host
|
# if user AGREED break loop and continue with selected host
|
||||||
if code == "extra": break
|
if code == "extra": break
|
||||||
|
@ -552,9 +552,7 @@ More information on the service you can find under:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
#bridge = shopOrder(shopurl, host['id'], torTarget, host['tor_bridge_duration'], host['tor_bridge_price_initial_sats'])
|
bridge = shopOrder(shopurl, host['id'], torTarget, host['tor_bridge_duration'], host['tor_bridge_price_initial_sats'])
|
||||||
bridge=[]
|
|
||||||
bridge['contract_breached']=True
|
|
||||||
|
|
||||||
except BlitzError as be:
|
except BlitzError as be:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue