1 | <?php |
||
18 | class PaymentsController extends AbstractController |
||
19 | { |
||
20 | /** |
||
21 | * @Route("/dropui", name="dropui", methods={"GET"}) |
||
22 | * |
||
23 | * @return Response |
||
24 | */ |
||
25 | public function dropUI() |
||
32 | |||
33 | /** |
||
34 | * @Route("/hosted-fields", name="hosted-fields", methods={"GET"}) |
||
35 | * |
||
36 | * @return Response |
||
37 | */ |
||
38 | public function hostedFields() |
||
45 | |||
46 | /** |
||
47 | * @Route("/payload", name="payload", methods={"POST"}) |
||
48 | * |
||
49 | * @return Response |
||
50 | */ |
||
51 | public function paymentsPayload() |
||
60 | |||
61 | /** |
||
62 | * @Route("/transaction", name="create", methods={"POST"}) |
||
63 | * |
||
64 | * @return Response |
||
65 | */ |
||
66 | public function createTransaction() |
||
81 | |||
82 | /** |
||
83 | * @Route("/transaction/{transactionId}/capture", name="capture", methods={"POST"}) |
||
84 | * |
||
85 | * @param string $transactionId |
||
86 | * |
||
87 | * @return Response |
||
88 | */ |
||
89 | public function captureTransaction(string $transactionId) |
||
99 | |||
100 | /** |
||
101 | * @Route("/{transactionId}", name="get", methods={"GET"}) |
||
102 | * |
||
103 | * @param string $transactionId |
||
104 | * @return Response |
||
105 | * @throws NotFound |
||
106 | */ |
||
107 | public function getTransaction(string $transactionId) |
||
115 | } |
||
116 |