Restore drupal commerce cart if paypal payment gets failed
Following solution worked for me

function custom_module_commerce_checkout_page_info_alter(&amp;$checkout_pages) {
  $checkout_pages['payment']['status_cart'] = TRUE;
}