|
|
|
@@ -1,6 +1,7 @@ |
|
|
|
import { apptemplate } from "@/common/app-template"; |
|
|
|
import { DEFAULT_DATE_FORMAT, formatToStr, now } from "@/common/datetime"; |
|
|
|
import { setHeaderButton } from "@/common/header-button"; |
|
|
|
import { myPageConfig } from "@/config/mypage"; |
|
|
|
import { Message } from "@/exception"; |
|
|
|
import { get入金予定結果一覧 } from "@/rest-api/入金予定結果"; |
|
|
|
import { 初回入金予定Checkbox, 定期申込予約 } from "@/types/定期申込予約"; |
|
|
|
@@ -78,11 +79,16 @@ export default function バンクチェック登録ボタン(record: 定期申 |
|
|
|
const today = formatToStr(now(), DEFAULT_DATE_FORMAT); |
|
|
|
const shopCode = sprintf("%s-%s", today, uuidV4()); |
|
|
|
|
|
|
|
const url = sprintf( |
|
|
|
"%s/robot-payment/bank-check/register", |
|
|
|
myPageConfig().BASE_URL |
|
|
|
); |
|
|
|
|
|
|
|
const form = document.createElement("form"); |
|
|
|
|
|
|
|
form.target = "_blank"; |
|
|
|
form.method = "POST"; |
|
|
|
form.action = "https://credit.j-payment.co.jp/link/bankcheck"; |
|
|
|
form.method = "GET"; |
|
|
|
form.action = url; |
|
|
|
form.appendChild(getInput("aid", "128522")); |
|
|
|
form.appendChild(getInput("cod", shopCode)); |
|
|
|
form.appendChild(getInput("jb", "CAPTURE")); |
|
|
|
@@ -90,7 +96,7 @@ export default function バンクチェック登録ボタン(record: 定期申 |
|
|
|
form.appendChild(getInput("tx", "0")); |
|
|
|
form.appendChild(getInput("sf", "0")); |
|
|
|
form.appendChild(getInput("customer_code", 顧客コード)); |
|
|
|
form.appendChild(getInput("token", "Aiurhieyubfiusygy8387gbjkh")); |
|
|
|
form.appendChild(getInput("token", myPageConfig().TOKEN)); |
|
|
|
form.appendChild(getInput("entry_record_no", record.$id.value)); |
|
|
|
|
|
|
|
document.getElementById("record-gaia")?.appendChild(form); |
|
|
|
|