Convert php into shortcode


Kindly someone convert this php code into shortocode. I am unable to do this. Thanks in advance!

<?php if ( $  type == 'credit' ) { <p><?php _e( "Thank you for using your nedvil wallet.", 'woo-wallet' ); ?> <?php echo wc_price( $  amount, woo_wallet_wc_price_args($  user->ID) ); ?> <?php _e( 'has been credited to your wallet.', 'woo-wallet' ); ?> <?php _e( 'Current wallet balance is', 'woo-wallet' ); ?> <?php echo woo_wallet()->wallet->get_wallet_balance( $  user->ID ); ?></p> <?php } ?> <?php if ( $  type == 'debit' ) { ?>     <p><?php _e( "Thank you for using your wallet.", 'woo-wallet' ); ?> <?php echo wc_price( $  amount, woo_wallet_wc_price_args($  user->ID) ); ?> <?php _e( 'has been debited from your wallet.', 'woo-wallet' ); ?> <?php _e( 'Current wallet balance is', 'woo-wallet' ); ?> <?php echo woo_wallet()->wallet->get_wallet_balance( $  user->ID ); ?></p> <?php } <?php