Slide 4
Slide 4 text
Payment Links API
4
JP_Stripes What’s new 2022/02
const price = await stripe.prices.create({
product: 'prod_xxxxx',
nickname: `${name}様専用プラン`,
recurring: {
interval: 'month'
},
unit_amount,
currency: 'jpy'
})
const link = await stripe.paymentLinks.create({
line_items: [{
price: price.id,
quantity
}]
})
#Stripe #JP_Stripes
● No Codeの支払いリンクを
APIからも作成可能に
● 複数商品の登録や更新、
商品ごとの数量指定にも対応
● 参考記事:
NoCodeでオンライン決済を受け付け
る”Payment Links(支払いリンク )"に、管理用
APIが登場しました!
https://qiita.com/hideokamoto/items/0cb83
f1e4000eb6c0131