-
Notifications
You must be signed in to change notification settings - Fork 72
Add pending refund notes #10600
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
Merged
Merged
Add pending refund notes #10600
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7ffd024
Fix for gateway + rest api flows
htdat d006e38
Fix for webhook
htdat 93e7d98
Refactor to use $is_pending
htdat af9c3e0
Refactor to handle both failed and succeeded status for `process_webh…
htdat c65cb26
Refactor handle_insufficient_balance_for_refund to use has_webhook_pr…
htdat d978ae8
Introduce Refund_Status
htdat 4ac2bfb
Merge branch 'develop' into fix/1195-pending-refund
htdat 84faf4f
Include Refund Status file + fix test_process_refund_should_work_with…
htdat cf19e4f
Fix + add tests WC_Payments_Webhook_Processing_Service_Test
htdat 4561cf8
Merge branch 'refs/heads/develop' into fix/1195-pending-refund
htdat f1c817f
Add tests for WC_Payments_Order_Service::handle_failed_refund
htdat a24b752
Add tests for changes in WC_Payments_Order_Service::add_note_and_meta…
htdat 07aaa99
Merge branch 'develop' into fix/1195-pending-refund
htdat 0028acf
Handle cancelled status
htdat d27e300
Use the correct status `canceled` (single letter `l` rather than the …
htdat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: fix | ||
|
||
Handle pending refunds properly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Class Refund_Status | ||
* | ||
* @package WooCommerce\Payments | ||
*/ | ||
|
||
namespace WCPay\Constants; | ||
|
||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit; // Exit if accessed directly. | ||
} | ||
|
||
/** | ||
* This class gives a list of all the possible WCPay refund status constants. | ||
* | ||
* @psalm-immutable | ||
*/ | ||
class Refund_Status extends Base_Constant { | ||
const PENDING = 'pending'; | ||
const SUCCEEDED = 'succeeded'; | ||
const FAILED = 'failed'; | ||
const CANCELED = 'canceled'; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.