Fill form when continuation in block

This commit is contained in:
Alex P 2023-10-23 20:59:49 +03:00
parent df283218bd
commit 539e211e6b
No known key found for this signature in database
GPG key ID: 54487A734A204D71
2 changed files with 19 additions and 0 deletions

View file

@ -167,6 +167,11 @@ class PayPalPaymentMethod extends AbstractPaymentMethodType {
$script_data['continuation']['cancel'] = array(
'html' => $this->cancellation_view->render_session_cancellation( $url, $this->session_handler->funding_source() ),
);
$order = $this->session_handler->order();
if ( $order ) {
$script_data['continuation']['order'] = $order->to_array();
}
}
return array(