mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge pull request #2437 from woocommerce/PCP-3395-when-there-isnt-any-shipping-option-for-the-address-the-order-is-still-created-from-classic-cart
When there isn't any shipping option for the address the order is still created from classic cart
This commit is contained in:
commit
0115dec944
2 changed files with 25 additions and 15 deletions
|
@ -20,10 +20,7 @@ const onApprove = ( context, errorHandler ) => {
|
|||
} )
|
||||
.then( ( data ) => {
|
||||
if ( ! data.success ) {
|
||||
errorHandler.genericError();
|
||||
return actions.restart().catch( ( err ) => {
|
||||
errorHandler.genericError();
|
||||
} );
|
||||
location.href = context.config.redirect;
|
||||
}
|
||||
|
||||
const orderReceivedUrl = data.data?.order_received_url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue