Bladeren bron

クレジットカード対応

master
sosuke.iwabuchi 1 jaar geleden
bovenliggende
commit
be501b0c11
7 gewijzigde bestanden met toevoegingen van 87 en 0 verwijderingen
  1. +3
    -0
      config/custom.php
  2. +2
    -0
      config/kintone.php
  3. +12
    -0
      resources/views/emails/members/register_creditcard.blade.php
  4. +1
    -0
      resources/views/robot-payment/bank-check/register.blade.php
  5. +5
    -0
      resources/views/robot-payment/creditcard/ok.blade.php
  6. +64
    -0
      resources/views/robot-payment/creditcard/register.blade.php
  7. BIN
      設計書/メール一覧.xlsx

+ 3
- 0
config/custom.php Bestand weergeven

@@ -7,5 +7,8 @@ return [
],
"bank-check" => [
'token' => env("BANK_CHECK_TOKEN", ""),
],
"creditcard" => [
'token' => env("CREDITCARD_TOKEN", ""),
]
];

+ 2
- 0
config/kintone.php Bestand weergeven

@@ -55,6 +55,8 @@ return [
...App\Kintone\Models\Pool::setConfig(),
...App\Kintone\Models\PoolTransferHistory::setConfig(),
...App\Kintone\Models\BankCheckResult::setConfig(),
...App\Kintone\Models\CreditcardAutoPaymentInfo::setConfig(),
...App\Kintone\Models\CreditcardAutoPaymentResult::setConfig(),
],

];

+ 12
- 0
resources/views/emails/members/register_creditcard.blade.php Bestand weergeven

@@ -0,0 +1,12 @@
@extends('emails.layouts.member')

@section('contents')
クレジットカード登録申請を受理いたしました。
下記のURLよりクレジットカードの登録をお願いいたします。

{{ $url }}
有効期限:{{ $expires_at }}

※クレジットカードの収納代行を株式会社ROBOT PAYMENに委託しております。

@endsection

+ 1
- 0
resources/views/robot-payment/bank-check/register.blade.php Bestand weergeven

@@ -14,6 +14,7 @@
<input type="hidden" name="customer_code" value="{{ $customer_code }}">
<input type="hidden" name="entry_record_no" value="{{ $entry_record_no }}">
<input type="hidden" name="token" value="{{ config('custom.bank-check.token') }}">
<input type="hidden" name="payment_type" value="BANK_CHECK">
</form>

<script>


+ 5
- 0
resources/views/robot-payment/creditcard/ok.blade.php Bestand weergeven

@@ -0,0 +1,5 @@
<html>

<body>ok</body>

</html>

+ 64
- 0
resources/views/robot-payment/creditcard/register.blade.php Bestand weergeven

@@ -0,0 +1,64 @@
<html>

<body>
<span>
</span>
<form id="target-form" action="https://credit.j-payment.co.jp/link/creditcard" method="post" target="_blank">
<div>店舗ID
<input type="text" name="aid" value="128522">
</div>
<div>店舗オーダー番号
<input type="text" name="cod" value="{{ \Str::uuid()->toString() }}">
</div>
<div>商品金額
<input type="text" name="am" value="0">
</div>
<div>税
<input type="text" name="tx" value="0">
</div>
<div>送料
<input type="text" name="sf" value="0">
</div>
<div>ジョブタイプ
<input type="text" name="jb" value="CAPTURE">
</div>
<div>自動課金周期(4が毎月)
<input type="text" name="actp" value="4">
</div>
<div>自動課金金額
<input type="text" name="acam" value="5000">
</div>
<div>課金日指定
<input type="text" name="ac1" value="27">
</div>
<div>顧客コード(オプション)
<input type="text" name="customer_code" value="10299">
</div>
<div>トークン
<input type="text" name="token" value="{{ config('custom.creditcard.token') }}">
</div>
<div>支払タイプ
<input type="text" name="payment_type" value="CREDITCARD">
</div>
<div>メールアドレス
<input type="text" name="em" value="kyoto-my-page-test-06@satellite-tech.co.jp">
</div>
<div>電話番号
<input type="text" name="pn" value="00011112222">
</div>
<div>課金開始日
<input type="text" name="ac4" value="2024/06/01">
</div>
<button type="submit">SUBMIT</button>
</form>

<script>
// window.onload = () => {
// document.getElementById('target-form').submit()
// }
</script>
</body>



</html>

BIN
設計書/メール一覧.xlsx Bestand weergeven


Laden…
Annuleren
Opslaan