Skip to content

直接傳入卡號並呼叫 api 回傳結果 #28

@huang840801

Description

@huang840801

我輸入以下程式碼但 getPrimeWithCard not found,請問有類似的方法可以用嗎

TPDirect.card.getPrimeWithCard({
  number: '4242 4242 4242 4242', // 信用卡號
  dueMonth: '01', // 到期月份
  dueYear: '2025', // 到期年份
  ccv: '123', // 信用卡驗證碼
  onSuccess: function(result) {
    // 取得 prime 成功,處理回傳的結果
    console.log(result);
  },
  onFail: function() {
    // 取得 prime 失敗,顯示錯誤訊息
    alert('取得 prime 失敗');
  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions