Skip to content

Commit 12c103c

Browse files
committed
Adjusted the method name verifySubmission() in the README.md
1 parent 0a0ba2d commit 12c103c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $client = new Mosparo\ApiClient\Client($url, $publicKey, $privateKey, ['verify'
5050
$mosparoSubmitToken = $_POST['_mosparo_submitToken'];
5151
$mosparoValidationToken = $_POST['_mosparo_validationToken'];
5252

53-
$result = $client->validateSubmission($_POST, $mosparoSubmitToken, $mosparoValidationToken);
53+
$result = $client->verifySubmission($_POST, $mosparoSubmitToken, $mosparoValidationToken);
5454

5555
if ($result->isSubmittable()) {
5656
// Send the email or process the data
@@ -76,7 +76,7 @@ $client = new Mosparo\ApiClient\Client($url, $publicKey, $privateKey, $args);
7676
```
7777

7878
#### Verify form data
79-
To verify the form data, call `validateSubmission` with the form data in an array and the submit and validation tokens, which mosparo generated on the form initialization and the form data validation. The method will return a `VerificationResult` object.
79+
To verify the form data, call `verifySubmission` with the form data in an array and the submit and validation tokens, which mosparo generated on the form initialization and the form data validation. The method will return a `VerificationResult` object.
8080
```php
8181
/**
8282
* @param array $formData Array with the form values. All not-processed fields by mosparo (hidden, checkbox,
@@ -88,7 +88,7 @@ To verify the form data, call `validateSubmission` with the form data in an arra
8888
* @throws \Mosparo\ApiClient\Exception Submit or validation token not available.
8989
* @throws \Mosparo\ApiClient\Exception An error occurred while sending the request to mosparo.
9090
*/
91-
$result = $client->validateSubmission($formData, $mosparoSubmitToken, $mosparoValidationToken);
91+
$result = $client->verifySubmission($formData, $mosparoSubmitToken, $mosparoValidationToken);
9292
```
9393

9494
### VerificationResult

0 commit comments

Comments
 (0)