mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-10 23:42:39 +08:00
Fill form when continuation in block
This commit is contained in:
parent
df283218bd
commit
539e211e6b
2 changed files with 19 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue