1- #:import get_color_from_hex kivy.utils.get_color_from_hex
2-
31<Payment> :
42 name: " payment"
5- BoxLayout:
6- ScrollView:
7- bar_width:0
8- do_scroll_x: False
9- #scroll_y:0
10-
3+ id : id_payment_screen
4+ payment_plan_id: " "
5+ MDTabs:
6+ id : tab_panel
7+ tab_display_mode:' text'
8+ Tab:
9+ title: app.tr._(" Payment" )
10+ id : id_payment plan
11+ padding: " 12dp"
12+ spacing: " 12dp"
1113 BoxLayout:
12- spacing: dp(8 )
13- padding: dp(5 )
14- size_hint_y: None
15- height: self .minimum_height
16- orientation: " vertical"
17-
18- ProductCategoryLayout:
19- category_text: " Monthly-Subscriptions"
20-
21- ProductLayout:
22- heading_text: " Gas (Play Billing Codelab)"
23- price_text: " $0.99"
24- source: app.image_path + " /payment/buynew1.png"
25- description_text: " Buy gasoline to ride!"
26- product_id: " SKUGASBILLING"
27-
28- ProductLayout:
29- heading_text: " Upgrade your car (Play Billing Codelab)"
30- price_text: " $1.49"
31- source: app.image_path + " /payment/buynew1.png"
32- description_text: " Buy a premium outfit for your car!"
33- product_id: " SKUUPGRADECAR"
34-
35- ProductLayout:
36- heading_text: " Month in gold status (Play Billing Codelab)"
37- price_text: " $0.99"
38- source: app.image_path + " /payment/buynew1.png"
39- description_text: " Enjoy a gold status for a month!"
40- product_id: " SKUMONTHLYGOLD"
41-
42- ProductCategoryLayout:
43- category_text: " One-time payment"
44-
45- ProductLayout:
46- heading_text: " Gas (Play Billing Codelab)"
47- price_text: " $0.99"
48- source: app.image_path + " /payment/buynew1.png"
49- description_text: " Buy gasoline to ride!"
50- product_id: " SKUONETIMEGAS"
51-
52- ProductCategoryLayout:
53- category_text: " Annual-Subscriptions"
54-
55- ProductLayout:
56- heading_text: " Gas (Play Billing Codelab)"
57- price_text: " $0.99"
58- source: app.image_path + " /payment/buynew1.png"
59- description_text: " Buy gasoline to ride!"
60- product_id: " SKUANNUALGAS"
61-
62- ProductLayout:
63- heading_text: " Year in gold status (Play Billing Codelab)"
64- price_text: " $10.99"
65- source: app.image_path + " /payment/buynew1.png"
66- description_text: " Enjoy a gold status for a year!"
67- product_id: " SKUANNUALGOLD"
14+ ScrollView:
15+ bar_width:0
16+ do_scroll_x: False
17+ BoxLayout:
18+ spacing: dp(5 )
19+ padding: dp(5 )
20+ size_hint_y: None
21+ height: self .minimum_height
22+ orientation: " vertical"
23+ ProductCategoryLayout:
24+ MDCard:
25+ orientation: " vertical"
26+ padding: " 8dp"
27+ spacing: " 12dp"
28+ size_hint: None , None
29+ size: " 560dp" , " 40dp"
30+ pos_hint: {" center_x" : .5 , " center_y" : .5 }
31+ MDLabel:
32+ text: f " You have { app.encrypted_messages_per_month} messages left "
33+ bold: True
34+ halign:' center'
35+ size_hint_y: None
36+ pos_hint: {" center_x" : .5 , " center_y" : .5 }
6837
38+ MDCard:
39+ orientation: " vertical"
40+ padding: " 8dp"
41+ spacing: " 12dp"
42+ size_hint: None , None
43+ size: " 560dp" , " 300dp"
44+ md_bg_color: [1 , 0.6 , 0 ,0.5 ]
45+ pos_hint: {" center_x" : .5 , " center_y" : .5 }
46+ MDLabel:
47+ text: " Free"
48+ bold: True
49+ halign:' center'
50+ size_hint_y: None
51+ pos_hint: {" center_x" : .5 , " center_y" : .5 }
52+ MDRectangleFlatIconButton:
53+ text: " [Currently this plan is active.]"
54+ icon: ' shield-check'
55+ line_color: 0 , 0 , 0 , 0
56+ text_color: ' ffffff'
57+ pos_hint: {" center_x" : .5 , " center_y" : .5 }
58+ font_size: ' 18sp'
59+ MDSeparator:
60+ height: " 1dp"
61+ MDLabel:
62+ text: " You can get zero encrypted message per month"
63+ halign:' center'
64+ bold: True
65+ MDCard:
66+ orientation: " vertical"
67+ padding: " 8dp"
68+ spacing: " 12dp"
69+ size_hint: None , None
70+ size: " 560dp" , " 300dp"
71+ md_bg_color: [0 , 0.6 , 0.8 ,0.8 ]
72+ pos_hint: {" center_x" : .5 , " center_y" : .5 }
73+ payment_plan_id: " sub_standard"
74+ MDLabel:
75+ text: " Standard"
76+ bold: True
77+ halign:' center'
78+ size_hint_y: None
79+ MDSeparator:
80+ height: " 1dp"
81+ MDLabel:
82+ text: " You can get 100 encrypted message per month"
83+ halign:' center'
84+ MDRaisedButton:
85+ text: " Get it now"
86+ theme_text_color: ' Primary'
87+ md_bg_color: [1 , 1 , 1 ,1 ]
88+ pos_hint: {' center_x' : .5 }
89+ on_release:app.open_payment_layout(root.payment_plan_id)
90+ MDCard:
91+ orientation: " vertical"
92+ padding: " 8dp"
93+ spacing: " 12dp"
94+ size_hint: None , None
95+ size: " 560dp" , " 300dp"
96+ md_bg_color: [1 , 0.6 , 0.8 ,0.5 ]
97+ pos_hint: {" center_x" : .5 , " center_y" : .5 }
98+ payment_plan_id: " sub_premium"
99+ MDLabel:
100+ text: " Premium"
101+ bold: True
102+ halign:' center'
103+ size_hint_y: None
104+ MDSeparator:
105+ height: " 1dp"
106+ MDLabel:
107+ text: " You can get 1000 encrypted message per month"
108+ halign:' center'
109+ MDRaisedButton:
110+ text: " Get it now"
111+ theme_text_color: ' Primary'
112+ md_bg_color: [1 , 1 , 1 ,1 ]
113+ pos_hint: {' center_x' : .5 }
114+ on_release:app.open_payment_layout(root.payment_plan_id)
115+ Tab:
116+ title: app.tr._(" Extra-Messages" )
117+ id : id_payment_tab
118+ BoxLayout:
119+ ScrollView:
120+ bar_width:0
121+ do_scroll_x: False
122+ BoxLayout:
123+ spacing: dp(8 )
124+ padding: dp(5 )
125+ size_hint_y: None
126+ height: self .minimum_height
127+ orientation: " vertical"
128+ ProductCategoryLayout:
129+ category_text: " Extra-Messages"
130+ ProductLayout:
131+ heading_text: " 100 Encrypted messages "
132+ price_text: " $0.99"
133+ source: app.image_path + " /payment/buynew1.png"
134+ description_text: " Buy extra one hundred encrypted messages!"
135+ product_id: " SKUGASBILLING"
136+ ProductLayout:
137+ heading_text: " 1000 Encrypted messages "
138+ price_text: " $1.49"
139+ source: app.image_path + " /payment/buynew1.png"
140+ description_text: " Buy extra one thousand encrypted messages!"
141+ product_id: " SKUUPGRADECAR"
69142<ProductCategoryLayout@BoxLayout> :
70143 size_hint_y: None
71144 height: self .minimum_height
94167 MDLabel:
95168 text: root.text_
96169 font_size: sp(15 )
97-
98170<ProductLayout> :
99171 heading_text: " "
100172 price_text: " "
117189 #heading area
118190 BoxLayout:
119191 size_hint_y: 0.3
120-
121192 #text heading
122193 BoxLayout:
123194 Widget:
169240 MDLabel:
170241 text: root.description_text
171242 font_size: sp(15 )
172-
173243 #Button Area
174244 BoxLayout:
175245 size_hint_y: 0.4
201271 RightLabel:
202272 text: root.right_label_text
203273 theme_text_color: " Custom"
204- text_color: 0 ,0 ,0 ,.4
274+ text_color: 0 ,0 ,0 ,0.5
205275 font_size: sp(12 )
206276
207277<PaymentMethodLayout> :
239309
240310 ListItemWithLabel:
241311 source: app.image_path + " /payment/btc.png"
242- text: " BTC"
312+ text: " BTC (Currently this feature is not available) "
243313 method_name: " btc"
244-
314+ theme_text_color: ' Secondary'
315+ md_bg_color: [0 , 0 , 0 ,1 ]
245316 ListItemWithLabel:
246317 source: app.image_path + " /payment/paypal.png"
247- text: " Paypal"
318+ text: " Paypal (Currently this feature is not available) "
248319 method_name: " som"
249-
320+ theme_text_color: ' Secondary'
321+ md_bg_color: [0 , 0 , 0 ,1 ]
250322 ListItemWithLabel:
251323 source: app.image_path + " /payment/buy.png"
252324 text: " One more method"
253- method_name: " omm"
325+ method_name: " omm"
0 commit comments