payment-kit 1.13.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +15 -0
- package/README.md +3 -0
- package/api/dev.ts +6 -0
- package/api/hooks/pre-start.js +12 -0
- package/api/src/hooks/pre-start.ts +21 -0
- package/api/src/index.ts +92 -0
- package/api/src/jobs/event.ts +72 -0
- package/api/src/jobs/invoice.ts +148 -0
- package/api/src/jobs/payment.ts +208 -0
- package/api/src/jobs/subscription.ts +301 -0
- package/api/src/jobs/webhook.ts +113 -0
- package/api/src/libs/audit.ts +73 -0
- package/api/src/libs/auth.ts +40 -0
- package/api/src/libs/chain/arcblock.ts +13 -0
- package/api/src/libs/dayjs.ts +17 -0
- package/api/src/libs/env.ts +5 -0
- package/api/src/libs/hooks.ts +42 -0
- package/api/src/libs/logger.ts +27 -0
- package/api/src/libs/middleware.ts +12 -0
- package/api/src/libs/payment.ts +53 -0
- package/api/src/libs/queue/index.ts +263 -0
- package/api/src/libs/queue/store.ts +47 -0
- package/api/src/libs/security.ts +95 -0
- package/api/src/libs/session.ts +164 -0
- package/api/src/libs/util.ts +93 -0
- package/api/src/locales/en.ts +3 -0
- package/api/src/locales/index.ts +37 -0
- package/api/src/locales/zh.ts +3 -0
- package/api/src/routes/checkout-sessions.ts +536 -0
- package/api/src/routes/connect/collect.ts +109 -0
- package/api/src/routes/connect/pay.ts +116 -0
- package/api/src/routes/connect/setup.ts +121 -0
- package/api/src/routes/connect/shared.ts +410 -0
- package/api/src/routes/connect/subscribe.ts +128 -0
- package/api/src/routes/customers.ts +70 -0
- package/api/src/routes/events.ts +76 -0
- package/api/src/routes/index.ts +59 -0
- package/api/src/routes/invoices.ts +126 -0
- package/api/src/routes/payment-currencies.ts +38 -0
- package/api/src/routes/payment-intents.ts +122 -0
- package/api/src/routes/payment-links.ts +221 -0
- package/api/src/routes/payment-methods.ts +39 -0
- package/api/src/routes/prices.ts +134 -0
- package/api/src/routes/products.ts +191 -0
- package/api/src/routes/settings.ts +33 -0
- package/api/src/routes/subscription-items.ts +148 -0
- package/api/src/routes/subscriptions.ts +254 -0
- package/api/src/routes/usage-records.ts +120 -0
- package/api/src/routes/webhook-attempts.ts +57 -0
- package/api/src/routes/webhook-endpoints.ts +105 -0
- package/api/src/store/migrate.ts +16 -0
- package/api/src/store/migrations/20230905-genesis.ts +52 -0
- package/api/src/store/migrations/20230911-seeding.ts +145 -0
- package/api/src/store/models/checkout-session.ts +395 -0
- package/api/src/store/models/coupon.ts +137 -0
- package/api/src/store/models/customer.ts +199 -0
- package/api/src/store/models/discount.ts +116 -0
- package/api/src/store/models/event.ts +111 -0
- package/api/src/store/models/index.ts +165 -0
- package/api/src/store/models/invoice-item.ts +185 -0
- package/api/src/store/models/invoice.ts +492 -0
- package/api/src/store/models/job.ts +75 -0
- package/api/src/store/models/payment-currency.ts +139 -0
- package/api/src/store/models/payment-intent.ts +282 -0
- package/api/src/store/models/payment-link.ts +219 -0
- package/api/src/store/models/payment-method.ts +169 -0
- package/api/src/store/models/price.ts +266 -0
- package/api/src/store/models/product.ts +162 -0
- package/api/src/store/models/promotion-code.ts +112 -0
- package/api/src/store/models/setup-intent.ts +206 -0
- package/api/src/store/models/subscription-item.ts +103 -0
- package/api/src/store/models/subscription-schedule.ts +157 -0
- package/api/src/store/models/subscription.ts +307 -0
- package/api/src/store/models/types.ts +406 -0
- package/api/src/store/models/usage-record.ts +132 -0
- package/api/src/store/models/webhook-attempt.ts +96 -0
- package/api/src/store/models/webhook-endpoint.ts +96 -0
- package/api/src/store/sequelize.ts +15 -0
- package/api/third.d.ts +28 -0
- package/blocklet.md +3 -0
- package/blocklet.yml +89 -0
- package/index.html +14 -0
- package/logo.png +0 -0
- package/package.json +133 -0
- package/public/.gitkeep +0 -0
- package/screenshots/.gitkeep +0 -0
- package/screenshots/1-subscription.png +0 -0
- package/screenshots/2-customer-1.png +0 -0
- package/screenshots/3-customer-2.png +0 -0
- package/screenshots/4-admin-3.png +0 -0
- package/screenshots/5-admin-4.png +0 -0
- package/scripts/build-clean.js +6 -0
- package/scripts/bump-version.mjs +35 -0
- package/src/app.tsx +68 -0
- package/src/components/actions.tsx +85 -0
- package/src/components/blockchain/tx.tsx +29 -0
- package/src/components/checkout/amount.tsx +24 -0
- package/src/components/checkout/error.tsx +30 -0
- package/src/components/checkout/footer.tsx +12 -0
- package/src/components/checkout/form/address.tsx +38 -0
- package/src/components/checkout/form/index.tsx +295 -0
- package/src/components/checkout/header.tsx +23 -0
- package/src/components/checkout/pay.tsx +222 -0
- package/src/components/checkout/product-card.tsx +56 -0
- package/src/components/checkout/product-item.tsx +37 -0
- package/src/components/checkout/skeleton/overview.tsx +21 -0
- package/src/components/checkout/skeleton/payment.tsx +35 -0
- package/src/components/checkout/success.tsx +183 -0
- package/src/components/checkout/summary.tsx +34 -0
- package/src/components/collapse.tsx +50 -0
- package/src/components/confirm.tsx +55 -0
- package/src/components/copyable.tsx +38 -0
- package/src/components/currency.tsx +15 -0
- package/src/components/customer/actions.tsx +73 -0
- package/src/components/data.tsx +20 -0
- package/src/components/drawer-form.tsx +77 -0
- package/src/components/error-fallback.tsx +7 -0
- package/src/components/error.tsx +39 -0
- package/src/components/event/list.tsx +217 -0
- package/src/components/info-card.tsx +40 -0
- package/src/components/info-metric.tsx +35 -0
- package/src/components/info-row.tsx +28 -0
- package/src/components/input.tsx +40 -0
- package/src/components/invoice/action.tsx +94 -0
- package/src/components/invoice/list.tsx +225 -0
- package/src/components/invoice/table.tsx +110 -0
- package/src/components/layout.tsx +70 -0
- package/src/components/livemode.tsx +23 -0
- package/src/components/metadata/editor.tsx +57 -0
- package/src/components/metadata/form.tsx +45 -0
- package/src/components/payment-intent/actions.tsx +81 -0
- package/src/components/payment-intent/list.tsx +204 -0
- package/src/components/payment-link/actions.tsx +114 -0
- package/src/components/payment-link/after-pay.tsx +87 -0
- package/src/components/payment-link/before-pay.tsx +175 -0
- package/src/components/payment-link/item.tsx +135 -0
- package/src/components/payment-link/product-select.tsx +66 -0
- package/src/components/payment-link/rename.tsx +64 -0
- package/src/components/portal/invoice/list.tsx +110 -0
- package/src/components/portal/subscription/cancel.tsx +83 -0
- package/src/components/portal/subscription/list.tsx +232 -0
- package/src/components/price/actions.tsx +21 -0
- package/src/components/price/form.tsx +292 -0
- package/src/components/product/actions.tsx +125 -0
- package/src/components/product/add-price.tsx +59 -0
- package/src/components/product/create.tsx +97 -0
- package/src/components/product/edit-price.tsx +75 -0
- package/src/components/product/edit.tsx +67 -0
- package/src/components/product/features.tsx +32 -0
- package/src/components/product/form.tsx +76 -0
- package/src/components/relative-time.tsx +41 -0
- package/src/components/section/header.tsx +29 -0
- package/src/components/status.tsx +12 -0
- package/src/components/subscription/actions/cancel.tsx +66 -0
- package/src/components/subscription/actions/index.tsx +172 -0
- package/src/components/subscription/actions/pause.tsx +83 -0
- package/src/components/subscription/items/actions.tsx +31 -0
- package/src/components/subscription/items/index.tsx +107 -0
- package/src/components/subscription/list.tsx +200 -0
- package/src/components/switch.tsx +48 -0
- package/src/components/table.tsx +66 -0
- package/src/components/uploader.tsx +81 -0
- package/src/components/webhook/attempts.tsx +149 -0
- package/src/contexts/products.tsx +42 -0
- package/src/contexts/session.ts +10 -0
- package/src/contexts/settings.tsx +54 -0
- package/src/env.d.ts +17 -0
- package/src/global.css +97 -0
- package/src/hooks/mobile.ts +15 -0
- package/src/index.tsx +6 -0
- package/src/libs/api.ts +19 -0
- package/src/libs/dayjs.ts +17 -0
- package/src/libs/util.ts +474 -0
- package/src/locales/en.tsx +395 -0
- package/src/locales/index.tsx +8 -0
- package/src/locales/zh.tsx +389 -0
- package/src/pages/admin/billing/index.tsx +56 -0
- package/src/pages/admin/billing/invoices/detail.tsx +215 -0
- package/src/pages/admin/billing/invoices/index.tsx +5 -0
- package/src/pages/admin/billing/subscriptions/detail.tsx +237 -0
- package/src/pages/admin/billing/subscriptions/index.tsx +5 -0
- package/src/pages/admin/customers/customers/detail.tsx +209 -0
- package/src/pages/admin/customers/customers/index.tsx +109 -0
- package/src/pages/admin/customers/index.tsx +47 -0
- package/src/pages/admin/developers/events/detail.tsx +77 -0
- package/src/pages/admin/developers/events/index.tsx +5 -0
- package/src/pages/admin/developers/index.tsx +60 -0
- package/src/pages/admin/developers/logs.tsx +3 -0
- package/src/pages/admin/developers/overview.tsx +3 -0
- package/src/pages/admin/developers/webhooks/detail.tsx +109 -0
- package/src/pages/admin/developers/webhooks/index.tsx +102 -0
- package/src/pages/admin/index.tsx +120 -0
- package/src/pages/admin/overview.tsx +3 -0
- package/src/pages/admin/payments/index.tsx +65 -0
- package/src/pages/admin/payments/intents/detail.tsx +205 -0
- package/src/pages/admin/payments/intents/index.tsx +5 -0
- package/src/pages/admin/payments/links/create.tsx +141 -0
- package/src/pages/admin/payments/links/detail.tsx +318 -0
- package/src/pages/admin/payments/links/index.tsx +167 -0
- package/src/pages/admin/products/coupons/index.tsx +3 -0
- package/src/pages/admin/products/index.tsx +81 -0
- package/src/pages/admin/products/prices/actions.tsx +151 -0
- package/src/pages/admin/products/prices/detail.tsx +203 -0
- package/src/pages/admin/products/prices/list.tsx +95 -0
- package/src/pages/admin/products/pricing-tables.tsx +3 -0
- package/src/pages/admin/products/products/create.tsx +105 -0
- package/src/pages/admin/products/products/detail.tsx +246 -0
- package/src/pages/admin/products/products/index.tsx +154 -0
- package/src/pages/admin/settings/branding.tsx +3 -0
- package/src/pages/admin/settings/business.tsx +3 -0
- package/src/pages/admin/settings/index.tsx +47 -0
- package/src/pages/admin/settings/payment-methods.tsx +80 -0
- package/src/pages/checkout/index.tsx +38 -0
- package/src/pages/checkout/pay.tsx +89 -0
- package/src/pages/customer/index.tsx +93 -0
- package/src/pages/customer/invoice.tsx +147 -0
- package/src/pages/home.tsx +9 -0
- package/tsconfig.api.json +9 -0
- package/tsconfig.eslint.json +7 -0
- package/tsconfig.json +99 -0
- package/tsconfig.types.json +11 -0
- package/vite.config.ts +19 -0
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import flat from 'flat';
|
|
2
|
+
|
|
3
|
+
export default flat({
|
|
4
|
+
common: {
|
|
5
|
+
id: 'ID',
|
|
6
|
+
url: 'URL',
|
|
7
|
+
createdAt: 'Created At',
|
|
8
|
+
updatedAt: 'Updated At',
|
|
9
|
+
resumesAt: 'Resume At',
|
|
10
|
+
actions: 'Actions',
|
|
11
|
+
options: 'Options',
|
|
12
|
+
advanced: 'Advanced options',
|
|
13
|
+
settings: 'Settings',
|
|
14
|
+
preview: 'Preview',
|
|
15
|
+
required: 'Required',
|
|
16
|
+
setup: 'Setup',
|
|
17
|
+
days: 'Days',
|
|
18
|
+
name: 'Name',
|
|
19
|
+
amount: 'Amount',
|
|
20
|
+
total: 'Total',
|
|
21
|
+
status: 'Status',
|
|
22
|
+
livemode: 'Test mode',
|
|
23
|
+
afterTime: 'After {time}',
|
|
24
|
+
timeAgo: '{time} ago',
|
|
25
|
+
save: 'Save',
|
|
26
|
+
saved: 'Changes saved',
|
|
27
|
+
remove: 'Remove',
|
|
28
|
+
removed: 'Resource removed',
|
|
29
|
+
confirm: 'Confirm',
|
|
30
|
+
cancel: 'Cancel',
|
|
31
|
+
every: 'every',
|
|
32
|
+
per: 'per',
|
|
33
|
+
unit: 'units',
|
|
34
|
+
edit: 'Edit',
|
|
35
|
+
quantity: 'Quantity',
|
|
36
|
+
yes: 'Yes',
|
|
37
|
+
no: 'No',
|
|
38
|
+
email: 'Email',
|
|
39
|
+
did: 'DID',
|
|
40
|
+
txHash: 'Transaction Hash',
|
|
41
|
+
customer: 'Customer',
|
|
42
|
+
description: 'Description',
|
|
43
|
+
statementDescriptor: 'Statement descriptor',
|
|
44
|
+
loadMore: 'View more {resource}',
|
|
45
|
+
loadingMore: 'Loading more {resource}...',
|
|
46
|
+
noMore: 'No more {resource}',
|
|
47
|
+
metadata: {
|
|
48
|
+
label: 'Metadata',
|
|
49
|
+
add: 'Add more metadata',
|
|
50
|
+
edit: 'Edit metadata',
|
|
51
|
+
empty: 'No metadata',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
admin: {
|
|
55
|
+
overview: 'Overview',
|
|
56
|
+
payments: 'Payments',
|
|
57
|
+
connections: 'Connections',
|
|
58
|
+
paymentLinks: 'Payment links',
|
|
59
|
+
paymentMethods: 'Payment methods',
|
|
60
|
+
customers: 'Customers',
|
|
61
|
+
products: 'Products',
|
|
62
|
+
coupons: 'Coupons',
|
|
63
|
+
pricingTables: 'Pricing tables',
|
|
64
|
+
billing: 'Billing',
|
|
65
|
+
invoices: 'Invoices',
|
|
66
|
+
subscriptions: 'Subscriptions',
|
|
67
|
+
developers: 'Developers',
|
|
68
|
+
webhooks: 'Webhooks',
|
|
69
|
+
events: 'Events',
|
|
70
|
+
logs: 'Logs',
|
|
71
|
+
details: 'Details',
|
|
72
|
+
settings: 'Settings',
|
|
73
|
+
branding: 'Branding',
|
|
74
|
+
business: 'Business',
|
|
75
|
+
summary: 'Summary',
|
|
76
|
+
product: {
|
|
77
|
+
info: 'Product information',
|
|
78
|
+
add: 'Add product',
|
|
79
|
+
view: 'View product details',
|
|
80
|
+
save: 'Save product',
|
|
81
|
+
saved: 'Product successfully saved',
|
|
82
|
+
additional: 'Additional options',
|
|
83
|
+
edit: 'Edit product',
|
|
84
|
+
pricing: 'Pricing',
|
|
85
|
+
archive: 'Archive product',
|
|
86
|
+
archiveTip: 'Archiving will hide this product from new purchases. Are you sure you want to archive this product?',
|
|
87
|
+
unarchive: 'Unarchive product',
|
|
88
|
+
unarchiveTip:
|
|
89
|
+
'Unarchiving will enable this product from new purchases. Are you sure you want to unarchive this product?',
|
|
90
|
+
remove: 'Remove product',
|
|
91
|
+
removeTip: 'Removing will hide this product from new purchases. Are you sure you want to remove this product?',
|
|
92
|
+
archived: 'This product has been archived',
|
|
93
|
+
archivedTip:
|
|
94
|
+
'This product can’t be added to new invoices, subscriptions, payment links, or pricing tables. Any existing subscriptions with this product remain active until canceled and any existing payment links or pricing tables are deactivated.',
|
|
95
|
+
image: {
|
|
96
|
+
label: 'Image',
|
|
97
|
+
add: 'Add image',
|
|
98
|
+
},
|
|
99
|
+
features: {
|
|
100
|
+
label: 'Features',
|
|
101
|
+
add: 'Add another feature',
|
|
102
|
+
},
|
|
103
|
+
name: {
|
|
104
|
+
label: 'Name',
|
|
105
|
+
required: 'Product name is required',
|
|
106
|
+
placeholder: 'Premium plan',
|
|
107
|
+
},
|
|
108
|
+
description: {
|
|
109
|
+
label: 'Description',
|
|
110
|
+
required: 'Product description is required',
|
|
111
|
+
placeholder: 'Product descriptions that appear on checkout, invoice pages',
|
|
112
|
+
},
|
|
113
|
+
statement_descriptor: {
|
|
114
|
+
label: 'Statement descriptor',
|
|
115
|
+
placeholder: 'ArcBlock',
|
|
116
|
+
},
|
|
117
|
+
unit_label: {
|
|
118
|
+
label: 'Unit label',
|
|
119
|
+
placeholder: 'Seat',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
price: {
|
|
123
|
+
name: 'Price',
|
|
124
|
+
type: 'Usage type',
|
|
125
|
+
info: 'Price information',
|
|
126
|
+
lookupKey: 'Lookup key',
|
|
127
|
+
setAsDefault: 'Set as default price',
|
|
128
|
+
detail: 'Pricing details',
|
|
129
|
+
add: 'Add another price',
|
|
130
|
+
view: 'View price details',
|
|
131
|
+
additional: 'Additional options',
|
|
132
|
+
model: 'Pricing model',
|
|
133
|
+
amount: 'Price',
|
|
134
|
+
duplicate: 'Duplicate price',
|
|
135
|
+
edit: 'Edit price',
|
|
136
|
+
archive: 'Archive price',
|
|
137
|
+
archiveTip: 'Archiving will hide this price from new purchases. Are you sure you want to archive this price?',
|
|
138
|
+
remove: 'Remove price',
|
|
139
|
+
removeTip: 'Removing will hide this price from new purchases. Are you sure you want to remove this price?',
|
|
140
|
+
unit_amount: {
|
|
141
|
+
required: 'Price is required',
|
|
142
|
+
positive: 'Price must be positive',
|
|
143
|
+
},
|
|
144
|
+
nickname: {
|
|
145
|
+
label: 'Price description',
|
|
146
|
+
placeholder: '',
|
|
147
|
+
},
|
|
148
|
+
lookup_key: {
|
|
149
|
+
label: 'Lookup key',
|
|
150
|
+
placeholder: '',
|
|
151
|
+
},
|
|
152
|
+
recurring: {
|
|
153
|
+
interval: 'Billing period',
|
|
154
|
+
metered: 'Usage is metered?',
|
|
155
|
+
aggregate: 'Charge for metered usage by',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
coupon: {
|
|
159
|
+
create: 'Create Coupon',
|
|
160
|
+
view: 'View coupon',
|
|
161
|
+
},
|
|
162
|
+
paymentLink: {
|
|
163
|
+
view: 'View payment link',
|
|
164
|
+
info: 'Payment link information',
|
|
165
|
+
add: 'Create payment link',
|
|
166
|
+
save: 'Create link',
|
|
167
|
+
saved: 'Payment link successfully saved',
|
|
168
|
+
additional: 'Additional options',
|
|
169
|
+
beforePay: 'Payment page',
|
|
170
|
+
afterPay: 'After payment',
|
|
171
|
+
products: 'Products',
|
|
172
|
+
addProduct: 'Add another product',
|
|
173
|
+
requireBillingAddress: 'Collect customers billing addresses',
|
|
174
|
+
requirePhoneNumber: 'Collect customers phone numbers',
|
|
175
|
+
allowPromotionCodes: 'Allow promotion codes',
|
|
176
|
+
includeFreeTrail: 'Include a free trial',
|
|
177
|
+
includeCustomFields: 'Add custom fields',
|
|
178
|
+
confirmPage: 'Confirmation Page',
|
|
179
|
+
showConfirmPage: 'Show confirmation page',
|
|
180
|
+
customMessage: 'Replace default with custom message',
|
|
181
|
+
customMessageTip: 'Include any details you see fit, such as delivery information.',
|
|
182
|
+
noConfirmPage: 'Do not show confirmation page',
|
|
183
|
+
createInvoice: 'Creates invoices for related payments.',
|
|
184
|
+
adjustable: 'Adjustable quantity',
|
|
185
|
+
adjustableQuantity: 'Let customers adjust quantity',
|
|
186
|
+
noProducts: 'Payment link must have at least one product',
|
|
187
|
+
noRedirectUrl: 'Payment link must have a redirect url',
|
|
188
|
+
noSubscriptionTrialDays: 'You must specify a trial period for subscription',
|
|
189
|
+
notAligned: 'The prices on all line items must have the same recurring interval',
|
|
190
|
+
edit: 'Edit payment link',
|
|
191
|
+
rename: 'Change name',
|
|
192
|
+
archive: 'Archive payment link',
|
|
193
|
+
archiveTip:
|
|
194
|
+
'Archiving will hide this payment link from new purchases. Are you sure you want to archive this payment link?',
|
|
195
|
+
remove: 'Remove payment link',
|
|
196
|
+
removeTip:
|
|
197
|
+
'Removing will hide this payment link from new purchases. Are you sure you want to remove this payment link?',
|
|
198
|
+
name: {
|
|
199
|
+
label: 'Name',
|
|
200
|
+
placeholder: 'Not consumer facing',
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
paymentIntent: {
|
|
204
|
+
name: 'Payment',
|
|
205
|
+
view: 'View payment detail',
|
|
206
|
+
empty: 'No payment intent',
|
|
207
|
+
refund: 'Refund payment',
|
|
208
|
+
},
|
|
209
|
+
paymentMethod: {
|
|
210
|
+
name: 'Payment Method',
|
|
211
|
+
type: 'Type',
|
|
212
|
+
},
|
|
213
|
+
paymentCurrency: {
|
|
214
|
+
name: 'Payment Currency',
|
|
215
|
+
},
|
|
216
|
+
event: {
|
|
217
|
+
empty: 'No events',
|
|
218
|
+
view: 'View event',
|
|
219
|
+
data: 'Event Data',
|
|
220
|
+
webhooks: 'Webhook Attempts',
|
|
221
|
+
type: 'Type',
|
|
222
|
+
pendingWebhooks: 'Pending Webhooks',
|
|
223
|
+
},
|
|
224
|
+
invoice: {
|
|
225
|
+
view: 'View invoice',
|
|
226
|
+
name: 'Invoice',
|
|
227
|
+
from: 'Billed from',
|
|
228
|
+
empty: 'No invoice',
|
|
229
|
+
number: 'Invoice Number',
|
|
230
|
+
dueDate: 'Due',
|
|
231
|
+
finalizedAt: 'Finalized At',
|
|
232
|
+
paidAt: 'Payment Date',
|
|
233
|
+
summary: 'Summary',
|
|
234
|
+
customer: 'Billed to',
|
|
235
|
+
billing: 'Billing Method',
|
|
236
|
+
download: 'Download PDF',
|
|
237
|
+
edit: 'Edit Invoice',
|
|
238
|
+
duplicate: 'Duplicate Invoice',
|
|
239
|
+
},
|
|
240
|
+
subscription: {
|
|
241
|
+
view: 'View subscription',
|
|
242
|
+
name: 'Subscription',
|
|
243
|
+
empty: 'No subscription',
|
|
244
|
+
product: 'Product',
|
|
245
|
+
collectionMethod: 'Billing',
|
|
246
|
+
currentPeriod: 'Current Period',
|
|
247
|
+
trialingPeriod: 'Trial Period',
|
|
248
|
+
discount: 'Discount',
|
|
249
|
+
startedAt: 'Started',
|
|
250
|
+
nextInvoice: 'Next Invoice',
|
|
251
|
+
itemId: 'Subscription Item ID',
|
|
252
|
+
update: 'Update subscription',
|
|
253
|
+
resume: 'Resume payment collection',
|
|
254
|
+
resumeTip:
|
|
255
|
+
'Are you sure you want to resume collecting payments? Any future invoices for this subscription will resume payment collection.',
|
|
256
|
+
cancel: {
|
|
257
|
+
schedule: 'Scheduled to cancel',
|
|
258
|
+
title: 'Cancel subscription',
|
|
259
|
+
required: 'Custom cancel time is required',
|
|
260
|
+
at: {
|
|
261
|
+
title: 'Cancel',
|
|
262
|
+
now: 'Immediately ({date})',
|
|
263
|
+
current_period_end: 'End of the current period ({date})',
|
|
264
|
+
custom: 'On a custom date',
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
pause: {
|
|
268
|
+
title: 'Pause payment collection',
|
|
269
|
+
required: 'Custom resume time is required',
|
|
270
|
+
type: {
|
|
271
|
+
title: 'Pause duration',
|
|
272
|
+
never: 'Indefinite',
|
|
273
|
+
custom: 'Until a custom date',
|
|
274
|
+
},
|
|
275
|
+
behavior: {
|
|
276
|
+
title: 'Invoice behavior',
|
|
277
|
+
keep_as_draft: 'Keep invoices as drafts',
|
|
278
|
+
keep_as_draft_tip: 'For businesses currently offering services but waiting to collect payments.',
|
|
279
|
+
mark_uncollectible: 'Mark invoices as uncollectible',
|
|
280
|
+
mark_uncollectible_tip: 'For businesses currently offering services for free.',
|
|
281
|
+
void: 'Void invoices',
|
|
282
|
+
voidTip: 'For businesses not currently offering services.',
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
customer: {
|
|
287
|
+
view: 'View customer',
|
|
288
|
+
edit: 'Edit information',
|
|
289
|
+
spent: 'Spent Amount',
|
|
290
|
+
refund: 'Refund Amount',
|
|
291
|
+
dispute: 'Dispute Amount',
|
|
292
|
+
name: 'Name',
|
|
293
|
+
email: 'Email',
|
|
294
|
+
phone: 'Phone',
|
|
295
|
+
invoicePrefix: 'Invoice Prefix',
|
|
296
|
+
address: {
|
|
297
|
+
label: 'Address',
|
|
298
|
+
country: 'Country',
|
|
299
|
+
state: 'State or province',
|
|
300
|
+
city: 'City or town',
|
|
301
|
+
line1: 'Address',
|
|
302
|
+
line2: 'Line2',
|
|
303
|
+
postal_code: 'Postal Code',
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
webhookEndpoint: {
|
|
307
|
+
hosted: 'Hosted endpoints',
|
|
308
|
+
add: 'Add endpoint',
|
|
309
|
+
addTip: 'Set up your webhook endpoint to receive live events from',
|
|
310
|
+
listen: 'Listen for',
|
|
311
|
+
version: 'API Version',
|
|
312
|
+
attempts: 'Webhook attempts',
|
|
313
|
+
url: {
|
|
314
|
+
label: 'URL',
|
|
315
|
+
description: 'Endpoint URL',
|
|
316
|
+
},
|
|
317
|
+
description: {
|
|
318
|
+
label: 'Description',
|
|
319
|
+
description: 'An optional description of what this endpoint is used for.',
|
|
320
|
+
},
|
|
321
|
+
events: {
|
|
322
|
+
label: 'Select events to listen to',
|
|
323
|
+
description: '',
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
checkout: {
|
|
328
|
+
contact: 'Contact information',
|
|
329
|
+
method: 'Payment method',
|
|
330
|
+
processing: 'Processing',
|
|
331
|
+
payment: 'Pay',
|
|
332
|
+
subscription: 'Subscribe',
|
|
333
|
+
setup: 'Subscribe',
|
|
334
|
+
connect: 'Connect and {action}',
|
|
335
|
+
portal: 'Manage subscriptions',
|
|
336
|
+
completed: {
|
|
337
|
+
payment: 'Thanks for your purchase',
|
|
338
|
+
subscription: 'Thanks for your subscribing',
|
|
339
|
+
setup: 'Thanks for your subscribing',
|
|
340
|
+
tip: 'A payment to {payee} has been completed. You can view the details of this payment in your account.',
|
|
341
|
+
},
|
|
342
|
+
confirm:
|
|
343
|
+
'By confirming your subscription, you allow {payee} to charge your account for this and future payments in accordance with their terms. You can always cancel your subscription.',
|
|
344
|
+
billing: {
|
|
345
|
+
auto: 'Country',
|
|
346
|
+
required: 'Billing address',
|
|
347
|
+
country: 'Country',
|
|
348
|
+
state: 'State or province',
|
|
349
|
+
city: 'City or town',
|
|
350
|
+
line1: 'Address',
|
|
351
|
+
line2: 'Line2',
|
|
352
|
+
postal_code: 'Postal Code',
|
|
353
|
+
},
|
|
354
|
+
customer: {
|
|
355
|
+
name: 'Name',
|
|
356
|
+
email: 'Email',
|
|
357
|
+
phone: 'Phone',
|
|
358
|
+
phoneTip: 'In case we need to contact you about your order',
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
customer: {
|
|
362
|
+
subscriptions: 'Current Subscriptions',
|
|
363
|
+
invoices: 'Invoice History',
|
|
364
|
+
details: 'Billing Details',
|
|
365
|
+
update: 'Update',
|
|
366
|
+
cancel: {
|
|
367
|
+
button: 'Cancel',
|
|
368
|
+
title: 'Cancel your subscription',
|
|
369
|
+
description:
|
|
370
|
+
'Your subscription will be canceled, but it is still available until the end of your current billing period on {date}',
|
|
371
|
+
feedback: {
|
|
372
|
+
tip: 'We would love your feedback, it will help us improve our service',
|
|
373
|
+
too_expensive: 'The service is too expensive',
|
|
374
|
+
missing_features: 'Features are missing for this service',
|
|
375
|
+
switched_service: 'I have switched to alternative service',
|
|
376
|
+
unused: 'I no longer use this service',
|
|
377
|
+
customer_service: 'The customer service is poor',
|
|
378
|
+
too_complex: 'The service is too complex to use',
|
|
379
|
+
low_quality: 'The service does not work well',
|
|
380
|
+
other: 'Other reasons',
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
recover: {
|
|
384
|
+
button: 'Renew',
|
|
385
|
+
title: 'Renew your subscription',
|
|
386
|
+
description: 'Your subscription will no longer be canceled, it will renew on {date}',
|
|
387
|
+
},
|
|
388
|
+
invoice: {
|
|
389
|
+
summary: 'Summary',
|
|
390
|
+
details: 'Details',
|
|
391
|
+
download: 'Download PDF',
|
|
392
|
+
pay: 'Pay this invoice',
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
});
|