payment intent test
This commit is contained in:
@@ -1,30 +1,33 @@
|
||||
import React from "react";
|
||||
import { TextSection, Link } from "@components/index";
|
||||
import Button from "@components/Button"
|
||||
import Stripe from "stripe"
|
||||
import Button from "@components/Button";
|
||||
import Stripe from "stripe";
|
||||
|
||||
const stripe = new Stripe("", // <--- API AVAIN
|
||||
{apiVersion: "2023-08-16"}
|
||||
const stripe = new Stripe(
|
||||
"", // <--- API AVAIN
|
||||
{ apiVersion: "2023-08-16" },
|
||||
);
|
||||
|
||||
const paymentIntentTest = async () => {
|
||||
const intent = await stripe.paymentIntents.create ({
|
||||
const intent = await stripe.paymentIntents.create({
|
||||
amount: 8,
|
||||
currency: "eur",
|
||||
});
|
||||
return intent;
|
||||
}
|
||||
};
|
||||
|
||||
const JoinPageView: React.FC = () => (
|
||||
<>
|
||||
<TextSection>
|
||||
<h1>Liity jäseneksi ja maksa jäsenmaksu</h1>
|
||||
<p>
|
||||
Killan jäsenhakemuksen voi täyttää <Link to="https://api.sahkoinsinoorikilta.fi/members/application">täältä.</Link> Muistakaa
|
||||
myös maksaa jäsenmaksu!
|
||||
</p>
|
||||
<Button onClick={paymentIntentTest} buttonStyle={"hero"} >Payment intent testi</Button>
|
||||
</TextSection>
|
||||
<p>
|
||||
Killan jäsenhakemuksen voi täyttää <Link to="https://api.sahkoinsinoorikilta.fi/members/application">täältä.</Link> Muistakaa
|
||||
myös maksaa jäsenmaksu!
|
||||
<Button onClick={paymentIntentTest} buttonStyle={"hero"} >
|
||||
Payment intent testi
|
||||
</Button>
|
||||
</p>
|
||||
</TextSection>
|
||||
</>
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user