-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add customer payment methods and PPCP chargeback reporting #25
Merged
Merged
Changes from 34 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
e953ca1
Add customer payment methods
chrismccluskey 3d72f43
Use singular payment method and remove empty values
chrismccluskey c7304c7
Return an empty array so that it passes validation
chrismccluskey cf08f8f
Delint
chrismccluskey 2397009
Allow enumeration
chrismccluskey 58f98f7
Try using get_current_user_id when sourcing user_id
chrismccluskey c60b05b
Remove payment_method if empty
chrismccluskey e15f791
Try to source the user id from order if returned user is admin
chrismccluskey 8d46b3e
Use user id from order when is_admin
chrismccluskey 55a00f3
Try using session id in this case
chrismccluskey c0acb38
Add debugging for woocommerce-payments integration
chrismccluskey 6ca5823
Add more temporary debug statements
chrismccluskey 53d3826
Add more temp debug logging
chrismccluskey 5a304b5
Fix debugging bug
chrismccluskey 8ea0b10
Log events as they are sent to Sift
chrismccluskey 44702cb
Try to find missing event with temp debug logs
chrismccluskey a3a6777
Use user id from order if it isn't otherwise available
chrismccluskey 35b789d
Add debugging logs for getting customer payment methods
chrismccluskey 93304f5
Use array filter instead of array reduce
chrismccluskey 318240e
Use array_reduce correctly
chrismccluskey 84b2a67
Seed the array_reduce function correctly
chrismccluskey 858a913
Cache customer orders
chrismccluskey b7ef122
Remove debug logs
chrismccluskey 92869e4
Remove log from woocommerce-payments integration
chrismccluskey 7216251
Promote order cache to singleton
chrismccluskey 8459132
Get payments from purchase-unit in order instead of purchase unit fro…
chrismccluskey 9230b1a
Get name from objects
chrismccluskey ad62efc
Fix typo
chrismccluskey 9a8843d
Use correct property from object
chrismccluskey 0c51c2e
Remove use of session unique id for user_id
chrismccluskey 8192963
Add chargeback event to PPCP
chrismccluskey 4d89695
Remove unused variable
chrismccluskey e95aebb
Prevent errors
chrismccluskey f375dd6
Remove action for creating chargeback with ppcp gateway and address f…
chrismccluskey a4edc85
Delint
chrismccluskey 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 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 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 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.
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.
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.
I kept these functions in case we ever get a filter to allow us to use them in the future.