Skip to main content

PaymentIntent Create

建立 - 付款意圖(PaymentIntent)

Request Body
    paymentNo string nullable

    付款單號如不指定,系統會自動產生

    amount double required

    Possible values: < 1000000000000

    付款金額

    currency string required

    Possible values: non-empty

    付款幣別

    description string nullable

    Possible values: <= 255 characters

    描述

    resultUrl string nullable

    轉跳網址

    webhookUrl string nullable

    webhook 網址

    allowedPaymentMethods string[] nullable

    允許的付款方式 (預設為全開)

    CreditCardInstallment, CreditCard, ATM

    allowInstallments int32[] nullable

    限制可分期數 (若無則為與後台設定一致)

    expireDays int32 nullable

    ATM虛擬帳號, 超商繳費代碼 繳費期限 (單位: 天)

Responses

Success


Schema
    status int32

    狀態碼

    type string nullable

    狀態

    message string nullable

    訊息

    result object
    id string nullable
    secret string nullable
    module string nullable
    allowPaymentMethodTypes string[] nullable
    amount double

    金額

    currency string nullable

    幣別

    description string nullable

    說明

    status string nullable

    狀態

    createdAt string nullable

    建立時間 ISO 8601

    payment object
    paymentNo string nullable

    付款單號

    paymentToken string nullable

    付款 Token

    amount double

    付款金額

    currency string nullable

    付款幣別

    paymentMethod string nullable

    付款方式

    payerName string nullable

    付款人姓名

    payerEmail string nullable

    付款人 Email

    description string nullable

    付款描述

    transactionNo string nullable

    交易編號

    status string nullable

    訂單狀態, 1:草稿 2:交易成功 3:交易失敗 4:交易待付款 5:交易進行中 6:已過期

    createdAt string nullable

    付款建立時間

    paidAt string nullable

    付款完成時間

    redirectUrl string nullable
    source string nullable
    products object[] nullable
  • Array [
  • name string nullable
    description string nullable
    price double
    currency string nullable
    quantity int32
  • ]
  • meta nullable
    meta object nullable
    requestId string nullable

    請求 ID

Loading...