He said her decision was conveyed to the court when he turned up to pay the RM5,000 ($1,412) fine on her behalf Tuesday.
Judge Abdul Rahman Yunus, who had handed down the sentence on Shukarno, had said the caning would be carried out by the federal prison authorities.
Ghani said the prison authorities could not carry it out as the judgment did not include a jail term, NST Online said.
However, following a meeting with the judge and Sharia deputy prosecutor Saiful Idhan Sahimi, Zuki said the court would issue a special warrant to detain Shukarno.
Pahang Sharia chief prosecutor Abdul Rahim Jaafar said the caning would not cause physical injury as it was merely to make the offender feel repentant.