Skip to content

Commit 3d42ec9

Browse files
committed
Fixed the wrong documentation for the validateSubmission method
1 parent fedd553 commit 3d42ec9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 token, which mosparo generated on the form initialization and the form data validation. The method will return true, if everything is correct and the submission is valid, or false, if there was an error and the submission should not be processed.
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.
8080
```php
8181
/**
8282
* @param array $formData Array with the form values. All not-processed fields by mosparo (hidden, checkbox,
@@ -104,7 +104,7 @@ form data are valid.
104104

105105
#### isValid(): boolean
106106
Returns true, if mosparo determined the form as valid. The difference to `isSubmittable()` is, that this
107-
is the raw result from mosparo while `isSubmittable()` also checks if the verification was done correctly.
107+
is the original result from mosparo while `isSubmittable()` also checks if the verification was done correctly.
108108

109109
#### getVerifiedFields(): array (see Constants)
110110
Returns an array with all verified field keys.

0 commit comments

Comments
 (0)