1 | <?php |
||
18 | class PaymentsController extends AbstractController |
||
19 | { |
||
20 | /** |
||
21 | * @Route("/", name="index", methods={"GET"}) |
||
22 | * |
||
23 | * @return Response |
||
24 | */ |
||
25 | public function payments() |
||
32 | |||
33 | /** |
||
34 | * @Route("/payload", name="payload", methods={"POST"}) |
||
35 | * |
||
36 | * @return Response |
||
37 | */ |
||
38 | public function paymentsPayload() |
||
47 | |||
48 | /** |
||
49 | * @Route("/transaction", name="create", methods={"POST"}) |
||
50 | * |
||
51 | * @return Response |
||
52 | */ |
||
53 | public function createTransaction() |
||
68 | |||
69 | /** |
||
70 | * @Route("/transaction/{transactionId}/capture", name="capture", methods={"POST"}) |
||
71 | * |
||
72 | * @param string $transactionId |
||
73 | * |
||
74 | * @return Response |
||
75 | */ |
||
76 | public function captureTransaction(string $transactionId) |
||
86 | |||
87 | /** |
||
88 | * @Route("/{transactionId}", name="get", methods={"GET"}) |
||
89 | * |
||
90 | * @param string $transactionId |
||
91 | * @return Response |
||
92 | * @throws NotFound |
||
93 | */ |
||
94 | public function getTransaction(string $transactionId) |
||
102 | } |
||
103 |