|
- <?php
-
- namespace App\Email\Members;
-
- use App\Kintone\Models\ChangePaymentMethodCreditcardOrderApplication;
- use App\Kintone\Models\Customer;
-
- /**
- * クレジットカード登録案内
- */
- class RegisterCreditcard extends Members
- {
- public function __construct(
- private ChangePaymentMethodCreditcardOrderApplication $application,
- protected ?Customer $customer = null,
- ) {
- if ($customer === null) {
- $customer = $application->getCustomer();
- }
- parent::__construct($customer);
- }
-
- public function getTemplateName(): string
- {
- return 'emails.members.register_creditcard';
- }
-
- public function getSubject(): string
- {
- return "クレジットカード登録のご案内";
- }
-
- public function getMemberParams(): array
- {
- return [
- 'url' => $this->getAppUrl([
- 'dashboard',
- 'robot-payment',
- 'creditcard',
- 'register',
- $this->application->token
- ]),
- 'expires_at' => $this->application->tokenExpiresAt->format('Y/m/d H:i')
- ];
- }
- }
|