Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
PrivateStorageio
Commits
4e65c96d
Commit
4e65c96d
authored
2 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
update the stripe ops docs with new values
parent
7b99195e
No related branches found
No related tags found
2 merge requests
!369
update production
,
!368
Support the new Stripe payment workflow
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/ops/stripe.rst
+7
-63
7 additions, 63 deletions
docs/ops/stripe.rst
with
7 additions
and
63 deletions
docs/ops/stripe.rst
+
7
−
63
View file @
4e65c96d
We use Stripe for payment processing.
We have test-mode keys for use in staging and live-mode keys for use in production.
There is "p
roduct
" state in Stripe to facilitate the payment workflow.
This was created with ``admin/create-p
roduct
.sh``
There is "p
ayment link
" state in Stripe to facilitate the payment workflow.
This was created with ``admin/create-p
ayment-link
.sh``
(once for test-mode and once for live-mode).
The test-mode product is:
```js
{
"id": "prod_MhKpVSNW6zAsOG",
"object": "product",
"active": true,
"attributes": [],
"created": 1666977337,
"default_price": "price_1Lxw9dBHXBAMm9bPgDW93Bwz",
"description": "30 GiB-months of Private.Storage storage × time",
"images": [],
"livemode": false,
"metadata": {},
"name": "30 GiB-months",
"package_dimensions": null,
"shippable": null,
"statement_descriptor": "PRIVATE STORAGE",
"tax_code": null,
"type": "service",
"unit_label": null,
"updated": 1666977337,
"url": "https://private.storage/"
}
```
The live-mode product is:
```js
XXX
```
The payment links can be found in PrivateStorageOps.
They are the values of the stage3 variables ``stripe_payment_link_staging`` and ``stripe_payment_link_production``.
There is also "webhook" state in Stripe so that PaymentServer receives notification of payment.
This was created with ``admin/create-webhook.sh``
(once for test-mode and once for live-mode).
The test-mode webhook is:
```js
{
"id": "we_1LxwKnBHXBAMm9bPDJXJNcDN",
"object": "webhook_endpoint",
"api_version": null,
"application": null,
"created": 1666978029,
"description": null,
"enabled_events": [
"checkout.session.completed"
],
"livemode": false,
"metadata": {},
"secret": "<REDACTED>"",
"status": "enabled",
"url": "https://payments.privatestorage-staging.com/v1/stripe/webhook"
}
```
The live-mode webhook is:
```js
XXX
```
The webhook secrets are redacted here.
They can be found with the rest of the each grid's private keys.
The test-mode webhook is ``we_1LxwKnBHXBAMm9bPDJXJNcDN``.
The live-mode webhook is ``we_1LzioNA9OAm23rYOmAcp3V85``.
The webhook secrets can be found with the rest of the each grid's private keys in ``stripe.webhook-secret``.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment