-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPayment.qml
144 lines (117 loc) · 2.77 KB
/
Payment.qml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import QtQuick 2.9
Item {
id:popup
anchors.centerIn: parent
//clip: true
states: [
State {
name:"Active"
PropertyChanges {
target: popup
visible:true
height:parent.height * 0.70
width:parent.width * 0.6
}
},
State {
name:"InActive"
PropertyChanges {
target: popup
visible:false
}
}
]
Rectangle {
anchors.fill:parent
color:"white"
border.color:"black"
border.width:2
radius:10
}
Rectangle {
color:"gray"
width:parent.width
height:title.height * 1.5
anchors.verticalCenter: title.verticalCenter
radius:10
border.color:"black"
border.width:1
}
Text {
id:title
anchors.horizontalCenter: parent.horizontalCenter
anchors.top:parent.top
anchors.topMargin:10
text:qsTr("Payment Options")
font.pixelSize:parent.width * 0.06
}
Column {
id:paymentopts
anchors.horizontalCenter: parent.horizontalCenter
anchors.top:title.bottom
anchors.topMargin:8
clip:true
spacing:10
width:parent.width
//height:parent.height
Rectangle {
width:popup.width
height:popup.height / 4
//border.color:"black"
border.width:2
radius:5
Image {
source:"img/paypal.png"
fillMode:Image.PreserveAspectFit
anchors.fill:parent
}
MouseArea {
anchors.fill:parent
//onClicked:Qt.openUrlExternally("http://openseed.vagueentertainment.com/core/paypal.php?id="+userid)
onClicked: Qt.openUrlExternally("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GB7XMSJJYU7RG")
}
}
Rectangle {
width:popup.width
height:popup.height / 4
//border.color:"black"
border.width:2
radius:5
Image {
source:"img/bitcoin.png"
fillMode:Image.PreserveAspectFit
width:popup.width
height:popup.height / 4
}
MouseArea {
anchors.fill:parent
//onClicked:Qt.openUrlExternally("http://openseed.vagueentertainment.com/core/coinbase.php?id="+userid)
onClicked:Qt.openUrlExternally("https://www.coinbase.com/checkouts/ea8d22e7ae085ac72051227e5cada2d0")
}
}
}
Text {
anchors.top:paymentopts.bottom
anchors.topMargin:10
anchors.horizontalCenter: popup.horizontalCenter
text:"Card Images are 1 USD"
}
VeButton {
height:parent.height * 0.10
width:parent.width * 0.98
anchors.bottom:parent.bottom
anchors.bottomMargin:10
anchors.horizontalCenter: parent.horizontalCenter
title:"Cancel"
Flasher {
id:cancel
}
MouseArea {
anchors.fill:parent
onPressed:cancel.state = "Active"
onReleased:cancel.state = "InActive"
onClicked:popup.state = "InActive"
propagateComposedEvents: true
}
}
}