PluginProbe
The Innovative Form Builder – IvyForms / 1.5
The Innovative Form Builder – IvyForms v1.5
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Services / Payment / PaymentGatewayInterface.php

PaymentGatewayInterface.php in The Innovative Form Builder – IvyForms 1.5, at backend/src/Services/Payment/PaymentGatewayInterface.php

31 lines 745 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IvyForms\Services\Payment;
4
5 use IvyForms\Entity\Form\Form;
6
7 /**
8 * Payment provider used during public form submission (Square, Stripe, …).
9 */
10 interface PaymentGatewayInterface
11 {
12 public function getId(): string;
13
14 /**
15 * Charge (or begin SCA) after form validation. Must not create the IvyForms entry.
16 *
17 * @param array<string, mixed> $rawParams
18 * @param array<int, object> $formFields
19 * @param array<string, mixed> $submissionData
20 * @param object $paymentField
21 */
22 public function processCharge(
23 array $rawParams,
24 Form $form,
25 array $formFields,
26 array $submissionData,
27 object $paymentField,
28 float $total
29 ): PaymentChargeResult;
30 }
31