Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
huang840801 opened this issue Apr 26, 2023 · 0 comments
Open

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

huang840801 opened this issue Apr 26, 2023 · 0 comments

Comments

@huang840801
Copy link

我輸入以下程式碼但 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 失敗');
  }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant