I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: Moved: deposit address not displayed

#5488
alexg
Keymaster

My apologies, the correct code is:


function test_diners_new_address() {
	$adapters = apply_filters( 'wallets_api_adapters', array() );
	if ( ! isset( $adapters['DNS'] ) ) {
		error_log( 'DNS adapter not found' );
	}
	$address1 = $adapters['DNS']->get_new_address();
	error_log( 'ADDRESS1: ' . print_r( $address1, true ) );

	$address2 = apply_filters( 'wallets_api_deposit_address', null, array( 'symbol' => 'DNS' ) );
	error_log( 'ADDRESS2: ' . print_r( $address2, true ) );
}

add_action( 'init', 'test_diners_new_address' );