Commit 50b0122
Adaptar módulo Vindi/VP para compatibilidade com PHP 7 (#21)
* feat: added new credit card form
* feat: added setup for old settings and minor bugfixes
* fix: error with 1i18n on setting's page
* fix: allow all countris by default
* i18n: add new terms for language file
* feat: added max installments and minum installment value
* feat: added reseller token to transactions
* feat: added reseller token to transactions
* feat: send tracking code to Vindi
* fix: mask also reseller token and token account
* fix: when the card number comes with 4 digits, don't add 20 before it
* fix: when the card number comes with 4 digits, don't add 20 before it
* doc: added pull request template
* fix: observer to bankslippix
* fix: cancel unapproved orders without config
* feat: adjust with phpstan
* fix: error monitoring transactions
* fix: worng price additional
* fix: update terms to ask for a CPF on checkout
* feat: don't auto select TaxVat when is not a CPF number
* feat: don't auto select TaxVat when is not a CPF number
* Payment link functionality created
* Vindi payment method verification to send the payment link has been added
* The payment link email template changed and made an email configuration to set the template
* Template Id changed
* Email path and list fixed
* feat/VINDI-143: estilo da pagina de link de pagamento com boleto, pix, bolepix e cartao
* feat/VINDI-143: estilizacao pagina link de pagamento
* Use strict added to js file
* ko library added
* float cast removed
* Applying the requested changes on payment link files
* adding the vindi_customer_taxvat to additionalInformation
* Fixing the bugs about payment link
* VP module version has been updated
* payment link email template has been changed
* Deleting the payment link when it is expired
* Fixing the payment link summary details
* Adding a discount verification
* Making the discount value positive
* fix: change fingerprint loader
* VINDI-143: pagina de sucesso
* VINDI-143: mensagem de desconto no link de pagamento
* Remove linha comentada
* The payment link delete has been removed from the payment link page
* fix: add fingerprint method in define
* fix: customer without taxvat
* fix: preventing conflict with the vindi recurrence module
* feat: adding security validations and better payment link management
* fix: phpstan fix
* feat: creating mass sending of payment link
* fix: remove await vindi fingerprint
* feat: add translate
* feat: automatically cancels orders whose payment link has expired more than 30 days ago
* feat: custom email template
* fix: remove await vindi fingerprint
* fix: remove await vindi fingerprint
* refactor: adding validation on payment methods and payment link success page
* fix: change form with get status
* feat: implementing single view system on success page
* feat: translate
* fix: remove await vindi fingerprint
* fix: remove await vindi fingerprint
* feat: expire_at field
* update
* update
* update
* update
* fix: processing payment link when canceling
* fix: Adjust payment data displays if the order has already been invoiced
* feat: added refund functionality
* fix: allow to refund
* fix: remove default consumer-key, consumer secret
* fix: remove default consumer-key, consumer secret
* fix: remove default consumer-key, consumer secret
* feat: create authentication button
* refactor: add logging in refund flow
* fix: address saving repeated
* fix: address saving repeated
* fix: logger in helper
* fix: logger in helper
* fix: logger in helper
* refactor: add log in RefundRequest
* refactor: add log in RefundRequest
* refactor: add log in RefundRequest
* fix: correcting the way the access_token is taken
* fix: generate new access_token
* refactor: refactoring duplicate code and creating tests
* refactor: refactoring duplicate code and creating tests
* refactor: refactoring duplicate code and creating tests
* fix: call fingerprint script in all pages
* fix: regenerate acces_token
* v1.4.1
* fix: refresh token error
* fix: it should not be possible to generate payment link via the frontend
* feat: added text to return URL
* fix: round the discount tag
* Update composer.json
* fix: floating point error
* feat: Add PHP 7.4+ compatibility to Vindi VP module
- Remove PHP 8.0+ specific features for backward compatibility
- Replace union types with untyped parameters and PHPDoc annotations
- Convert arrow functions to anonymous functions
- Remove property type declarations in favor of PHPDoc comments
- Maintain all existing functionality and business logic
- Ensure compatibility with both PHP 7.4+ and PHP 8.x versions
This change makes the module compatible with PHP 7.4+ environments while
preserving full functionality for payment link creation, validation,
email sending, and payment processing workflows.
Files modified:
- PaymentLinkService and related service classes
- Block components for admin and frontend
- Controllers for checkout and admin operations
- Observers and plugins for order integration
- Repository and model classes
- Console commands and cron jobs
No breaking changes to existing APIs or functionality.
---------
Co-authored-by: Thiago Contardi <thiagocontardi@hotmail.com>
Co-authored-by: Thiago Contardi <thiago@bizcommerce.com.br>
Co-authored-by: Contardi <contardi@users.noreply.github.com>
Co-authored-by: Gabriel Antal <gabrielantalsilva@gmail.com>
Co-authored-by: Caroline Esteves <carol@bizcommerce.com.br>
Co-authored-by: Antal <gabriel.antal@bizcommerce.com.br>
Co-authored-by: Antal <44688111+GabrielAntal@users.noreply.github.com>
Co-authored-by: carolineesteves <131886821+carolineesteves@users.noreply.github.com>
Co-authored-by: Iago Cedran <iago@bizcommerce.com.br>1 parent c525ef7 commit 50b0122
File tree
24 files changed
+106
-87
lines changed- Block
- Adminhtml/Order
- Custom
- Console/Command
- Controller
- Adminhtml/PaymentLink
- Checkout
- Cron
- Model
- ResourceModel
- Total/Quote
- Observer
- Plugin/Model/Service
24 files changed
+106
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | | - | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments