Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

37 Zeilen
1.4KB

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