18 import Ubuntu.Components 0.1
19 import Ubuntu.Payments 0.1
31 implicitHeight: paymentButton.implicitHeight
32 implicitWidth: paymentButton.implicitWidth
36 objectName:
"paymentButton"
38 color: Theme.palette.selected.foreground
39 text: paymentClient.formattedPrice
40 onClicked: paymentClient.start()
41 anchors.right: parent.right
42 width: (root.width - units.gu(1)) / 2
47 property var source: widgetData[
"source"]
49 price: source[
"price"]
50 currency: source[
"currency"]
51 storeItemId: source[
"store_item_id"]
52 onPurchaseCompleted: root.triggered(widgetId,
"purchaseCompleted", source)
53 onPurchaseError: root.triggered(widgetId,
"purchaseError", source)