Skip to content

Commit 67150d5

Browse files
committed
Fix cancel current order when return to shop
1 parent f817f81 commit 67150d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/classes/sdk/Serializers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public static function get_checkout( $order, $checkout_url, $redirect_id, $user
174174
'merchant' => array(
175175
'confirmation_url' => add_query_arg( 'action', 'confirm', get_permalink( $redirect_id ) ),
176176
'cancel_url' => html_entity_decode( $order->get_cancel_order_url() ),
177-
'checkout_url' => html_entity_decode( $order->get_cancel_order_url( $checkout_url ) ),
177+
'checkout_url' => html_entity_decode( $checkout_url ),
178178
'success_url' => html_entity_decode( $order->get_checkout_order_received_url() ),
179179
),
180180
'customer' => $user->ID ? self::get_user( $user ) : self::get_customer( $order->billing_email ),

0 commit comments

Comments
 (0)