mode ) ? 'sandbox.' : ''; $transaction_url = 'https://' . urlencode( $subdomain ) . 'paypal.com/activity/payment/' . urlencode( $transaction_id ); return '' . esc_html( $transaction_id ) . ''; } add_filter( 'edd_payment_details_transaction_id-paypal_commerce', __NAMESPACE__ . '\link_transaction_id', 10, 2 ); /** * By default, EDD_Payment converts an empty transaction ID to be the ID of the payment. * We don't want that to happen... Empty should be empty. * * @since 2.11 */ add_filter( 'edd_get_payment_transaction_id-paypal_commerce', '__return_false' );