Skip to content
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 payment method name for the pay for order page #4047

Merged
merged 52 commits into from
Mar 25, 2025
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
01fb660
Initial work for SPE in the blocks checkout
wjrosa Mar 6, 2025
6fa6524
Initial work for SPE in the blocks checkout
wjrosa Mar 6, 2025
e9e29bf
Merge branch 'develop' into add/spe-block-checkout-implementation3
wjrosa Mar 6, 2025
ebd83f7
Including method to check if SPE is enabled
wjrosa Mar 6, 2025
710d17d
Implementing the new method
wjrosa Mar 6, 2025
6d80f8e
Implementing the new method
wjrosa Mar 6, 2025
1d8719a
Fix payment method types param
wjrosa Mar 6, 2025
7fc63eb
Merge branch 'develop' into add/spe-block-checkout-implementation3
wjrosa Mar 6, 2025
2978768
Adding specific unit tests
wjrosa Mar 6, 2025
b53af0b
Merge branch 'add/spe-block-checkout-implementation3' of https://gith…
wjrosa Mar 6, 2025
7f5a1ae
Putting back tests removed by mistake
wjrosa Mar 6, 2025
d53a826
Putting back tests removed by mistake
wjrosa Mar 6, 2025
b608d61
Replacing payment method configuration ID
wjrosa Mar 7, 2025
f2d09be
Merge branch 'develop' into add/spe-block-checkout-implementation3
wjrosa Mar 7, 2025
5135ae8
Changelog and readme entries
wjrosa Mar 7, 2025
0506150
Merge branch 'add/spe-block-checkout-implementation3' of https://gith…
wjrosa Mar 7, 2025
2c39c38
Mninor change to PHP code coverage script
wjrosa Mar 7, 2025
de93540
Merge branch 'develop' into add/spe-block-checkout-implementation3
wjrosa Mar 10, 2025
0a5978a
Merge branch 'develop' into add/spe-block-checkout-implementation3
wjrosa Mar 10, 2025
c2701c5
SPE implementation for the classic/shortcode checkout
wjrosa Mar 10, 2025
9c8574f
Reverting hardcode of feature flag value
wjrosa Mar 10, 2025
861e43f
Accordion layout
wjrosa Mar 10, 2025
14af7a9
Fix mandate and return URL parameters passing
wjrosa Mar 10, 2025
c76929f
Change method title
wjrosa Mar 11, 2025
0b2a7f6
Merge branch 'develop' into add/spe-classic-checkout-implementation
wjrosa Mar 11, 2025
c13eb7f
Fix feature flag case
wjrosa Mar 11, 2025
aaa7f20
Fix payment method title
wjrosa Mar 11, 2025
d0f4e4c
Fix voucher payments processing
wjrosa Mar 11, 2025
30b4ba1
Doc update + improving code readability
wjrosa Mar 11, 2025
a4938a8
Changelog and readme entries
wjrosa Mar 11, 2025
33de300
Fix tests
wjrosa Mar 11, 2025
acebbc1
Merge branch 'develop' into add/spe-classic-checkout-implementation
wjrosa Mar 11, 2025
8447ac1
Removing hardcoded payment method configuration ID
wjrosa Mar 11, 2025
2730cf2
Merge branch 'add/spe-classic-checkout-implementation' of https://git…
wjrosa Mar 11, 2025
b2653cc
Merge branch 'develop' into add/spe-classic-checkout-implementation
wjrosa Mar 12, 2025
1dda5ff
Fix payment method name for the pay for order page
wjrosa Mar 12, 2025
9728ddb
Improving readability
wjrosa Mar 12, 2025
9982587
Merge branch 'develop' into add/spe-classic-checkout-implementation
diegocurbelo Mar 13, 2025
ff0c2c6
Merge branch 'develop' into add/spe-classic-checkout-implementation
diegocurbelo Mar 14, 2025
1cb9151
Merge branch 'develop' into add/spe-classic-checkout-implementation
wjrosa Mar 17, 2025
246b2a9
Merge branch 'develop' into add/spe-classic-checkout-implementation
wjrosa Mar 17, 2025
ebc60ff
Merge branch 'add/spe-classic-checkout-implementation' into fix/order…
wjrosa Mar 17, 2025
730c898
Merge branch 'develop' into add/spe-classic-checkout-implementation
diegocurbelo Mar 18, 2025
719b08f
Merge branch 'develop' into add/spe-classic-checkout-implementation
wjrosa Mar 19, 2025
f99a10a
Temporarily disabling the SEPA tokens for other methods feature when …
wjrosa Mar 19, 2025
4856c81
Merge branch 'add/spe-classic-checkout-implementation' into fix/order…
wjrosa Mar 19, 2025
c71d5f5
Merge branch 'develop' into fix/order-pay-for-order-payment-method-name
wjrosa Mar 20, 2025
4f4f9e9
Merge branch 'develop' into fix/order-pay-for-order-payment-method-name
wjrosa Mar 20, 2025
9aeccba
Merge branch 'develop' into fix/order-pay-for-order-payment-method-name
wjrosa Mar 21, 2025
a019c26
Merge branch 'develop' into fix/order-pay-for-order-payment-method-name
wjrosa Mar 24, 2025
f9bfadb
Merge branch 'develop' into fix/order-pay-for-order-payment-method-name
diegocurbelo Mar 24, 2025
a59f756
Merge branch 'develop' into fix/order-pay-for-order-payment-method-name
wjrosa Mar 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions includes/payment-methods/class-wc-stripe-upe-payment-method-cc.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,20 @@ public function __construct() {
*/
public function get_title( $payment_details = false ) {
$wallet_type = $payment_details->card->wallet->type ?? null;
if ( $payment_details && $wallet_type ) {
return $this->get_card_wallet_type_title( $wallet_type );
if ( $payment_details ) {
if ( $wallet_type ) {
return $this->get_card_wallet_type_title( $wallet_type );
}

// Setting title for the order details page / thank you page (classic checkout) when SPE is enabled.
if ( $this->spe_enabled ) {
foreach ( WC_Stripe_UPE_Payment_Gateway::UPE_AVAILABLE_METHODS as $payment_method_class ) {
$payment_method = new $payment_method_class();
if ( $payment_method->get_id() === $payment_details->type ) {
return $payment_method->get_title();
}
}
}
}

if ( $this->spe_enabled ) {
Expand Down
Loading