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