This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
extension.yaml
241 lines (209 loc) · 6.75 KB
/
extension.yaml
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: make-payment
version: 0.1.3
specVersion: v1beta
displayName: Make Payments with Google Pay
description: Makes a payment with Google Pay via one or more supported Payment Service Providers, and writes the response to Cloud Firestore.
license: Apache-2.0
sourceUrl: https://github.com/google-pay/firebase-extension/tree/main
releaseNotesUrl: https://github.com/google-pay/firebase-extension/blob/main/CHANGELOG.md
author:
authorName: Google Pay
url: https://developers.google.com/pay/api
contributors:
- authorName: Stephen McDonald
email: [email protected]
url: https://developers.google.com/pay/api
billingRequired: true
params:
- param: LOCATION
label: Cloud Functions location
description: >-
Where do you want to deploy the functions created for this extension?
You usually want a location close to your database. Realtime Database
instances are located in `us-central1`. For help selecting a
location, refer to the [location selection
guide](https://firebase.google.com/docs/functions/locations).
type: select
options:
- label: Iowa (us-central1)
value: us-central1
- label: South Carolina (us-east1)
value: us-east1
- label: Northern Virginia (us-east4)
value: us-east4
- label: Belgium (europe-west1)
value: europe-west1
- label: London (europe-west2)
value: europe-west2
- label: Taiwan (asia-east1)
value: asia-east1
- label: Hong Kong (asia-east2)
value: asia-east2
- label: Tokyo (asia-northeast1)
value: asia-northeast1
- label: Osaka (asia-northeast2)
value: asia-northeast2
- label: Los Angeles (us-west2)
value: us-west2
- label: Salt Lake City (us-west3)
value: us-west3
- label: Las Vegas (us-west4)
value: us-west4
- label: Montreal (northamerica-northeast1)
value: northamerica-northeast1
- label: Sao Paulo (southamerica-east1)
value: southamerica-east1
- label: Frankfurt (europe-west3)
value: europe-west3
- label: Zurich (europe-west6)
value: europe-west6
- label: Warsaw (europe-central2)
value: europe-central2
- label: Sydney (australia-southeast1)
value: australia-southeast1
- label: Mumbai (asia-south1)
value: asia-south1
- label: Singapore (asia-southeast1)
value: asia-southeast1
- label: Jakarta (asia-southeast2)
value: asia-southeast2
- label: Seoul (asia-northeast3)
value: asia-northeast3
default: us-central1
required: true
immutable: true
- param: FIRESTORE_PATH
label: Cloud Firestore path
description: >-
What is the path to the Cloud Firestore collection you want to use for
payment requests? You make payment requests by adding documents to this
collection; the response will be written back to the same document.
required: true
default: payments
example: path/to/payments
- param: ADYEN_CONFIG
label: Adyen Config
description: >-
If you will use Adyen as a payment processor, specify your account
information as a JSON object.
For example:
```
{
"environment": "",
"merchantAccount": ""
}
```
required: false
default: '{}'
- param: ADYEN_API_KEY
label: Adyen API Key
type: secret
description: >-
If you will use Adyen as a payment processor, specify your Adyen API key.
required: false
- param: BRAINTREE_CONFIG
label: Braintree Config
description: >-
If you will use Braintree as a payment processor, specify your account
information as a JSON object.
For example:
```
{
"environment": "Sandbox",
"merchantId": "",
"publicKey": ""
}
```
required: false
default: '{}'
- param: BRAINTREE_PRIVATE_KEY
label: Braintree Private Key
type: secret
description: >-
If you will use Braintree as a payment processor, specify your Braintree private key.
required: false
- param: CHECKOUTLTD_CONFIG
label: Checkout.com Config
description: >-
If you will use Checkout.com as a payment processor, specify your account
information as a JSON object.
For example:
```
{
"publicKey": ""
}
```
required: false
default: '{}'
- param: CHECKOUTLTD_SECRET_KEY
label: Checkout.com Secret Key
type: secret
description: >-
If you will use Checkout.com as a payment processor, specify your Checkout.com secret key.
required: false
- param: CYBERSOURCE_CONFIG
label: Cybersource Config
description: >-
If you will use Cybersource as a payment processor, specify your account
information as a JSON object.
For example:
```
{
"authenticationType": "",
"runEnvironment": "",
"merchantID": "",
"merchantKeyId": ""
}
```
required: false
default: '{}'
- param: CYBERSOURCE_SECRET_KEY
label: Cybersource Secret Key
type: secret
description: >-
If you will use Cybersource as a payment processor, specify your Cybersource secret key.
required: false
- param: SQUARE_CONFIG
label: Square Config
description: >-
If you will use Square as a payment processor, specify your account
information as a JSON object.
For example:
```
{
"environment": ""
}
```
required: false
default: '{}'
- param: SQUARE_ACCESS_TOKEN
label: Square Access token
type: secret
description: >-
If you will use Square as a payment processor, specify your Square access token.
required: false
roles:
- role: datastore.user
reason: Allows this extension to access Cloud Firestore to read and process added payment documents.
resources:
- name: databasePay
type: firebaseextensions.v1beta.function
properties:
location: ${LOCATION}
runtime: nodejs14
eventTrigger:
eventType: providers/cloud.firestore/eventTypes/document.create
resource: projects/${PROJECT_ID}/databases/(default)/documents/${FIRESTORE_PATH}/{documentID}