Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Print CSS improvements #856

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

WIP: Print CSS improvements #856

wants to merge 13 commits into from

Conversation

ovbm
Copy link
Contributor

@ovbm ovbm commented May 30, 2024

No description provided.

trm217 and others added 11 commits June 5, 2024 12:07
This is a bandaid for the existing payment flow.

A payment with the same pledgeId and the same payment method should always 
return the same payment Intent for 24 hours.

The idempotent key is derived from the pledgeId and the payment method id

* fix(payments): prevent multiple payment intents for pledge

Use idempotencyKey to prevent multiple payment intents for
the same pledge id in 24 hours

* fix(payments): derive idempotency key from pledge and payment method
Turns every domain in the CORS_ALLOWLIST_URL to a regex pattern,
escaping `[.*+?^${}()|[\]\\]` and turning `*` into `\.*`.

== Examples ==

```
https://www.republik.ch => /^https:\\/\\/www\\.republik\\.ch$/
https://*.republik.ch => /^https:\\/\\/.*\\.republik\\.ch$/
```
the new dynamic regex matcher prevents request proxied from localhost.

There is no real reason why we should prevent localhost request similar to requests cli tools like curl
Copy link

vercel bot commented Jun 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
publikator-republik-ch ✅ Ready (Inspect) Visit Preview Jun 5, 2024 10:12am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants