|
- <?php
-
- namespace App\Http\Controllers\Web\RobotPayment\CreditCard;
-
- use App\Http\Controllers\Web\BaseParam;
-
- /**
- * @property string $gid 決済番号 決済毎に発行されるユニークID
- * @property string $rst 決済結果(決済成功「1」決済失敗「2」リトライ課金失敗「3」ユーザー様による課金停止「4」お試し期間中にリトライ課金課金2回失敗「5」)
- * @property ?string $ec エラーコード
- * @property string $cod 店舗オーダー番号 決済データ送信時に送信された店舗オーダー番号
- * @property ?int $am 決済金額
- * @property ?int $tx 税金額
- * @property ?int $sf 送料
- * @property ?int $ta 合計金額
- * @property string $acid 自動課金番号 対象の自動課金番号
- *
- * ※決済金額、税金額、送料、合計金額はAPI仕様書には載っていないが、テストで送られることを確認
- */
- class PaymentResultParam extends BaseParam
- {
- public function rules(): array
- {
- return [
- 'gid' => $this->str(),
- 'rst' => $this->str(),
- 'ec' => $this->str(true),
- 'cod' => $this->str(),
- 'am' => $this->numeric(),
- 'tx' => $this->numeric(true),
- 'sf' => $this->numeric(true),
- 'ta' => $this->numeric(true),
- 'acid' => $this->str(),
- ];
- }
- }
|