1 | <?php |
||
18 | class PaymentsController extends AbstractController |
||
19 | { |
||
20 | /** |
||
21 | * @param string $action |
||
22 | * @param string $description |
||
23 | * @return Response |
||
24 | * |
||
25 | * @Route("/dropui", name="dropui", methods={"GET"}, |
||
26 | * defaults={"description" = "DropUI", "action" = "dropui"}) |
||
27 | * @Route("/hosted-fields", name="hosted-fields", methods={"GET"}, |
||
28 | * defaults={"description" = "Hosted Fields", "action" = "hosted-fields"}) |
||
29 | * @Route("/apm", name="apm", methods={"GET"}, |
||
30 | * defaults={"description" = "Alternative Payments", "action" = "apm"}) |
||
31 | * @Route("/3ds", name="three-ds", methods={"GET"}, |
||
32 | * defaults={"description" = "3D Secure", "action" = "3ds"}) |
||
33 | * @Route("/vault", name="vault", methods={"GET"}, |
||
34 | * defaults={"description" = "Vault API", "action" = "vault"}) |
||
35 | * @Route("/request", name="request", methods={"GET"}, |
||
36 | * defaults={"description" = "PaymentRequestAPI", "action" = "request"}) |
||
37 | */ |
||
38 | public function payments(string $action, string $description) |
||
47 | |||
48 | /** |
||
49 | * @Route("/payload", name="payload", methods={"POST"}) |
||
50 | * |
||
51 | * @return Response |
||
52 | */ |
||
53 | public function paymentsPayload() |
||
62 | |||
63 | /** |
||
64 | * @Route("/transaction", name="create", methods={"POST"}) |
||
65 | * |
||
66 | * @return Response |
||
67 | */ |
||
68 | public function createTransaction() |
||
83 | |||
84 | /** |
||
85 | * @Route("/transaction/{transactionId}/capture", name="capture", methods={"POST"}) |
||
86 | * |
||
87 | * @param string $transactionId |
||
88 | * |
||
89 | * @return Response |
||
90 | */ |
||
91 | public function captureTransaction(string $transactionId) |
||
101 | |||
102 | /** |
||
103 | * @Route("/{transactionId}", name="get", methods={"GET"}) |
||
104 | * |
||
105 | * @param string $transactionId |
||
106 | * @return Response |
||
107 | * @throws NotFound |
||
108 | */ |
||
109 | public function getTransaction(string $transactionId) |
||
117 | } |
||
118 |