purchase

public static boolean purchase(Player player, ItemStack template, double price)

Prepare first, consume the provider's debit result, then deliver once.