LINE Pay註冊一卡通MONEY十分簡單
LINE Pay註冊一卡通MONEY十分簡單

註冊一卡通MONEY十分簡單。
請準備好身分證及銀行帳戶,註冊完即可馬上開始使用!
1.於 LINE Pay 主頁面點擊「一卡通MONEY」
2.點擊「註冊一卡通MONEY」
3.同意各項條款
4.設定登入 ID
5.驗證手機號碼
6.驗證身分證
7.金融驗證(可使用信用卡/銀行帳戶)
8.設定密碼,完成!
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);
}
留言