-
Notifications
You must be signed in to change notification settings - Fork 68
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
Display Link as payment method on order received page with setup intents #8764
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2af1b78
add support for express_checkout setting set by a third-party plugin
d59a80b
add changelog entry
ff3dec6
Merge branch 'develop' into add/third-party-plugin-support-for-duplic…
timur27 88a0e8f
Merge branch 'develop' into fix/link-setup-intent-pm-title
mdmoore c864d6e
Set Link payment method title on order received page
mdmoore 19495fe
changelog
mdmoore 52aa162
Merge branch 'develop' into fix/link-setup-intent-pm-title
mdmoore 2b9504d
Remove redundant payment_method_id from 3DS update
mdmoore 828b147
Merge branch 'develop' into fix/link-setup-intent-pm-title
brettshumaker 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: fix | ||
Comment: Minor change to Link payment method display. | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,16 @@ public function get_redacted_email( $context = 'view' ) { | |
return $this->redact_email_address( $this->get_email( $context ) ); | ||
} | ||
|
||
/** | ||
* Returns the type of this payment token (CC, eCheck, or something else). | ||
* | ||
* @param string $deprecated Deprecated since WooCommerce 3.0. | ||
* @return string Payment Token Type (CC, eCheck) | ||
*/ | ||
public function get_type( $deprecated = '' ) { | ||
return self::TYPE; | ||
} | ||
|
||
/** | ||
* Transforms email address into redacted/shortened format like ***[email protected]. | ||
* Using shortened length of four characters will mimic CC last-4 digits of card number. | ||
|
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.
update_order_status()
is used to update 3DS orders after authentication. Shortcode checkout includespayment_method_id
in theupdate_order_status()
AJAX request for setup intents but blocks checkout doesn't. This payment method is only used in adding the token to the user. We need the token to determine the payment method type in order to correctly set the payment method title. This is all to say that we can safely remove this as it's now being set below, pulled from the intent.Incidentally, this might solve #8611 but I haven't had a chance to verify that yet.