Skip to content

Commit ee61340

Browse files
Stripe donation form
1 parent 69266b6 commit ee61340

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

pages/community/donate.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,5 @@ The ReScript language, its tooling and docmentation, are fully developed by the
1212

1313
It also enables us to fund important Open Source projects within the ReScript ecosystem.
1414

15-
## How to Donate?
16-
17-
For now we only support SEPA transfers.
18-
1915

2016
<DonationForm />

src/components/Meta.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,6 @@ let make = (
7575
| _ => Constants.versions.latest
7676
}}
7777
/>
78+
<script src="https://js.stripe.com/v3/buy-button.js" />
7879
</Head>
7980
}

src/others/DonationForm.res

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,12 @@
44

55
@react.component
66
let make = () => {
7-
<div className="max-w-2xl">
8-
<div className="mb-6">
9-
<div className="py-4 font-mono">
10-
<p>
11-
<strong> {React.string("IBAN: ")} </strong>
12-
{React.string("AT24 2021 9000 2110 4161")}
13-
</p>
14-
<p>
15-
<strong> {React.string("BIC: ")} </strong>
16-
{React.string("GIBAATWWXXX")}
17-
</p>
18-
<p>
19-
<strong> {React.string("Bank: ")} </strong>
20-
{React.string("Erste Bank der oesterreichischen Sparkassen AG")}
21-
</p>
22-
<p>
23-
<strong> {React.string("Account Name: ")} </strong>
24-
{React.string("ReScript Association")}
25-
</p>
26-
</div>
27-
</div>
28-
29-
<img src="/static/donation_qr_code.svg" className="w-48 mx-auto mt-6" alt="SEPA QR Code" />
7+
<div className="pt-4 max-w-2xl text-center">
8+
<stripe-buy-button
9+
{...Obj.magic({
10+
"buy-button-id": "buy_btn_1RS2jjLvZNMEoCiEOIqXq9y6",
11+
"publishable-key": "pk_live_kJ6je9A1VblN5DWtrtedHUQo00mib09Cam",
12+
})}
13+
/>
3014
</div>
3115
}

0 commit comments

Comments
 (0)