Handle continuation mode in blocks

This commit is contained in:
Alex P 2023-04-07 15:58:59 +03:00
parent b0a0eea752
commit 493933a1c1
No known key found for this signature in database
GPG key ID: 54487A734A204D71
6 changed files with 107 additions and 12 deletions

View file

@ -927,6 +927,15 @@ class SmartButton implements SmartButtonInterface {
$localize['button']['style']['tagline'] = false;
}

if ( $this->is_paypal_continuation() ) {
$order = $this->session_handler->order();
assert( $order !== null );

$localize['continuation'] = array(
'order_id' => $order->id(),
);
}

$this->request_data->dequeue_nonce_fix();
return $localize;
}