-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix coding standards & introduce GitHub action. #147
Conversation
3d9f17e
to
7efa4d6
Compare
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest we update this to v3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in 9e59aff.
* | ||
* @return string | ||
*/ | ||
protected function _generate_parameter_string( $api_data, $sort_data_before_merge = true, $skip_empty_values = true ) { | ||
protected function _generate_parameter_string( $api_data, $sort_data_before_merge = true, $skip_empty_values = true ) { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we should globally disable this rule since we're having to ignore that on multiple lines within this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we should globally disable this rule since we're having to ignore that on multiple lines within this file?
Done in aac4e4d. I excluded the rule for this file only as none of the other files were affected.
eac719d
to
9b03d33
Compare
@ankitguptaindia This has been in QA status for a while now, so bumping this up in your queue. |
Hello @peterwilsoncc Could you please fix the conflict in this PR? |
# Conflicts: # .github/workflows/php-compatibility.yml # gateway-payfast.php
@ankitguptaindia The merge conflicts are resolved. |
Simple Product Purchase:
Subscription Purchase:
Renewal Subscription (from customer side):
Subscription Cancellation:
Subscription Reactivation and Payment (from customer side):
Unsuccessful Payment:
Canceled Transactions: ✅ QA Updates - WIP Remains - Pre-order, Privacy exports (need to discuss with Dev) |
@ankitguptaindia Following up your slack message re:privacy exports: Firstly, I made a typo and meant erasing private data, The plugin ties in to the WordPress functionality for erasing data and will remove a customers orders when their email is entered on the screen above. Subscriptions
Pre-orders
|
I tested this PR by following the provided instructions. I encountered some issues during the testing, but these issues are not specific to the changes made in this PR. I was able to reproduce these issues with older versions of the PayFast extension, including versions 1.5.0, 1.5.5, and 1.5.8. I have reported these issues separately for further discussion and potential fixes. The issues reported are as follows:
The PR functions the same way as the stable version of this extension. |
@faisal-alvi when we get back to the PHPCS work, please look at merging in or pulling across work from @peterwilsoncc's PR here into #160 so that we've got a single PR that handles these updates for PayFast... thanks! |
#160 is merged in the |
@faisal-alvi would you please help take over this PR to handle that |
Issue: #89
Ticket:
Slack Thread:
Description
Most of the missing
@since
annotations were for really old functions so I used the version number1.4.13
as that was the earliest available tag in the check-in so I could be sure that the functions were included in that version.Most of the changes are cosmetic but there are a few changes that might have side effects:
json_encode
towp_json_encode
)I left this line unchanged as modifying it requires a significant refactor that is probably best done as a dedicated PR to make sure nothing breaks.
I also left
urlencode
calls as is, I didn't want to risk the payfast API chocking on%20
in place of+
.Steps to Test
This changes much of the plugin, there are main class includes 513 changes (about 1/3rd of the file). The following items should be checked:
Documentation
Changelog Entry
Closes #89 .