import CheckoutIntents from 'checkout-intents';
const client = new CheckoutIntents({
apiKey: "RYE/staging-ec7a06d0ba5647ee824a",
});
// Step 1: Create checkout intent + poll until awaiting confirmation
const intent = await client.checkoutIntents.createAndPoll({
productUrl: "https://flybyjing.com/collections/shop/products/the-big-boi",
quantity: 1,
buyer: {
firstName: "John",
lastName: "Doe",
email: "john.doe@example.com",
phone: "212-333-2121",
address1: "123 Main St",
city: "New York",
province: "NY",
postalCode: "10001",
country: "US",
},
});
// Step 2: Review offer details (price, shipping, taxes)
console.log("Offer:", intent.offer);
// Step 3: Confirm with payment + poll until completed
const completedIntent = await client.checkoutIntents.confirmAndPoll(intent.id, {
paymentMethod: {
type: "stripe_token",
stripeToken: "tok_visa",
},
});
// Step 4: Handle result
if (completedIntent.state === "completed") {
console.log("Order placed successfully!", completedIntent);
} else if (completedIntent.state === "failed") {
console.error("Order failed:", completedIntent.failureReason);
}
保護喉嚨的5種食物推薦!
跳至主要內容
保護喉嚨的5種食物推薦!

冬天這些致病菌造成的呼吸道問題中、最常見的是咳嗽,要多吃什麼、才能保護喉嚨?
建議多吃下列食物:
1、粉光養生茶:粉光參比高麗蔘涼、由於粉光參能益氣降火、提神健脾開胃,加上菊花、枸杞子、羅漢果、對於喉嚨滋潤、相當不錯,蠻適合壓力大、工作忙碌的人身上。
2、蜂蜜檸檬生薑水:蜂蜜本身性涼、檸檬則富含維他命C,生薑也是一種有效的免疫系統的幫助者,中國與印度醫學常用來舒緩消化道與幫助免疫系統,我自己門診中也常泡這個來保養喉嚨。
3、冰糖雪梨:梨子的皮、對肺很好,建議洗乾淨就好、不要削掉皮、直接做成冰糖雪梨。
4、綠茶:綠茶中的兒茶素具有抗菌的功效,加入枸杞跟甘草,對於緩解喉嚨不舒服及咳嗽症狀、效果更好。
5、多吃優質蛋白質:日星木村拓哉的養生食物之一就是納豆,建議喉嚨不舒服、不妨多喝豆漿、味噌豆腐湯等。
import CheckoutIntents from 'checkout-intents';
const client = new CheckoutIntents({
apiKey: "RYE/staging-ec7a06d0ba5647ee824a",
});
// Step 1: Create checkout intent + poll until awaiting confirmation
const intent = await client.checkoutIntents.createAndPoll({
productUrl: "https://flybyjing.com/collections/shop/products/the-big-boi",
quantity: 1,
buyer: {
firstName: "John",
lastName: "Doe",
email: "john.doe@example.com",
phone: "212-333-2121",
address1: "123 Main St",
city: "New York",
province: "NY",
postalCode: "10001",
country: "US",
},
});
// Step 2: Review offer details (price, shipping, taxes)
console.log("Offer:", intent.offer);
// Step 3: Confirm with payment + poll until completed
const completedIntent = await client.checkoutIntents.confirmAndPoll(intent.id, {
paymentMethod: {
type: "stripe_token",
stripeToken: "tok_visa",
},
});
// Step 4: Handle result
if (completedIntent.state === "completed") {
console.log("Order placed successfully!", completedIntent);
} else if (completedIntent.state === "failed") {
console.error("Order failed:", completedIntent.failureReason);
}
留言
發佈留言