| 1 | <?php |
||
| 20 | class EccubePaymentCreditCard extends CreditCard |
||
|
|
|||
| 21 | { |
||
| 22 | protected $request; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function checkout() |
||
| 28 | { |
||
| 29 | // 支払処理をしたら PaymentResult を返す |
||
| 30 | return new PaymentResult(); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function apply() |
||
| 37 | { |
||
| 38 | // 他のコントローラに移譲等の処理をする |
||
| 39 | $dispatcher = new PaymentDispatcher(); |
||
| 40 | $dispatcher->setForward(true); |
||
| 41 | $dispatcher->setRoute('shopping_***'); |
||
| 42 | |||
| 43 | return $dispatcher; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | public function setFormType(FormInterface $form) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function verify() |
||
| 62 | } |
||
| 63 |